/*
Conversionary Protestants do not cause democracy
Elena Nikolova UCL, IOS-Regensburg, CELSI and GLO
Jakub Polansky University of Sussex
*/

set more off
cd "C:\Users\Jakub Polansky\Desktop\CUP_BJPOLS\bjpols\dataverse"
cap log c
log using log\nikolova_polansky_2020, replace

***LABELING VARIABLES***
{
use "mrld.dta" 
rename prec_mastername country
label variable country "Country"
label variable Dutchcol "Dutch Colony"
label variable Britcol "British Colony"
label variable Nobrprot "Other Religious Liberty Colony"
label variable Nosigcol "Never Colonized Significantly"
label variable Island "Island Nation"
label variable Landlock "Landlocked Nation"
label variable Euroback "Percent European in 1980"
label variable PctMuslim1970 "Percent Muslim in 1970"
label variable Bigoil "Major Oil Producer"
label variable Litb4mis "Literate Culture before Missionary Contact"
label variable Yrsmis60 "Years Exposure to Protestant Missions (all countries)"
label variable Npmispc23x10k "Protestant Missionaries per 10,000"
label variable Epct1900 "Percent Evangelized by 1900"
label variable Yrcathmis1444_1960 "Years Exposure to Catholic Missions"
label variable Cmis23oldpopx10k "Foreign Catholic Priests per 10,000 pop. in 1923"
label variable N1stsiteaf1444 "Date 1st Sighted by Europeans after 1444"
label variable See2mis1960 "Gap between Sighted and 1st Missionaries"
label variable litxmisgap "Interaction of Mission Gap and Pre-Mission Literacy"
label variable latxmisgap "Interaction of Missions Gap and Latitude"
label variable Ndifsitecol "Gap between Sighted and Colonized"
label variable Nlatxcolgap "Interaction of Colonial Gap and Latitude"
label variable Colswitch "Number of Times Territory Switched Colonizers"
label variable Protstakecol "�Protestant� Colonizer Took Colony from �Catholics�"
label variable MortNoDutch "�Settler� Mortality Rate (from AJR 2001)"
label variable Mort "�Settler� Mortality Rate (from AJR 2001)"
label variable Logmort0 "Natural Log of �Settler� Mortality Rate"
label variable Ajrpd1500 "Population Density in 1500"
label variable Ajrurb1500 "Urbanization in 1500"
label variable LifeExpectancy_1940 "Life Expectancy in 1940"
label variable PctProt1970New "Percent Protestant in 1970"
label variable PctNonRel1970 "Percent Non-Religious in 1970"
label variable Lngdpall "Natural Log of GDP per capita: Mean 1960�1994"
label variable Yr1stsec "Earliest Available Secondary Educ. Enrollment Rate"
label variable SecEdNoDutch "Mean Secondary Ed. Enrollment Rate: 1960�1985"
label variable Sec6085 "Mean Secondary Ed. Enrollment Rate: 1960�1985"
label variable Yr1stgdp "Earliest Available GDP"
label variable Avgmaxtemp "Mean Max. Temperature"
label variable Avgmintemp "Mean Min. Temperature"
label variable PrcfreezonceX100 "Percent Freezes During Year"
label variable PrcntmntnsX100 "Percent Mountains"
label variable Malaria "Malaria Endemic"
label variable CustomCourt "Percent Cases Tried in Customary Courts"
label variable ColPolicePK "Colonial Police per 1,000 people"
label variable ForcedSettlementNew "Forced Settlement Colony"
label variable ForcedSettlXYrsProtMis "Yrs of Prot. Missions X Forced Settlement"
label variable Opec "OPEC Member"
label variable PrcntwetlandX100 "Percent of Country Wetlands"
label variable RiveraccessX100 "Percent of Country River Access"
label variable Distancetocoast "Mean Distance to the Coast in Kilometers"
label variable Precipitation "Mean Annual Precipitation in Centimeters"
label variable Elevation "Mean Elevation"
label variable Avgmaxxpercip "Interaction of High Temperature & Precipitation"
label variable CaribbeanNew "Caribbean Country"
label variable MidEastNAfNew "Middle Eastern & North African Country"
label variable OttomanEmp "Was in Ottoman Empire"
label variable Yr1stdem "Earliest Available Democracy Data"
label variable Yr1stgdp "Earliest Available GDP Data"
label variable Firstsec "Year of First Educational Data"
save, replace
}

***EXTRACTING DEMOCRACY VARIABLES***
{
	use "boix.dta"
	keep country ccode abbreviation year democracy
	rename democracy bmr
	save "bmr.dta", replace

	use "boix.dta"
	keep country ccode abbreviation year democracy_omitteddata
	rename democracy_omitteddata bmr_omitted
	save "bmr_omitted.dta", replace

	use "democracy.dta"
	keep extended_country_name GWn cown year pmm_bollen
	rename pmm_bollen bollen
	rename extended_country_name country
	drop if bollen ==.
	replace bollen = bollen/100
	save "bollen.dta", replace

	use "cheibub.dta"
	keep ctryname year cowcode ccdcodelet cid wdicode imf_code politycode uncode democracy
	rename democracy cheibub
	rename ctryname country
	save, replace

	use "democracy.dta"
	keep extended_country_name GWn cown year polyarchy_contestation_dimensin
	rename extended_country_name country
	rename polyarchy_contestation_dimensin coppedge_c
	drop if coppedge_c ==.
	save "coppedge_c.dta", replace

	use "democracy.dta"
	keep extended_country_name GWn cown year polyarchy_inclusion_dimension
	rename extended_country_name country
	rename polyarchy_inclusion_dimension coppedge_i
	drop if coppedge_i ==.
	save "coppedge_i.dta", replace
	
	use "fh.dta"
	keep country year inverse_pr inverse_cl inverse_mean
	rename inverse_pr fh_pr
	rename inverse_cl fh_cl
	rename inverse_mean fh_mean
	replace fh_pr = fh_pr/7
	replace fh_cl = fh_cl/7
	replace fh_mean = fh_mean/7
	save, replace

	use "fh.dta"
	keep country year fh_cl
	save "fh_cl.dta", replace

	use "fh.dta"
	keep country year fh_mean
	save "fh_mean.dta", replace

	use "fh.dta"
	keep country year fh_pr
	save "fh_pr.dta", replace

	use "gwf.dta" 
	sort gwf_country year
	replace gwf_regimetype = gwf_nonautocracy if gwf_regimetype =="NA"
	replace gwf_regimetype = "1" if gwf_regimetype =="democracy"
	replace gwf_regimetype = "." if gwf_regimetype =="foreign-occupied" | gwf_regimetype =="warlord/foreign-occupied"
	replace gwf_regimetype = "0" if gwf_regimetype !="1" & gwf_regimetype !="."
	destring gwf_regimetype, replace
	rename gwf_regimetype gwf
	rename gwf_country country
	keep country year gwf
	save, replace

	use "democracy.dta"
	keep extended_country_name GWn cown year kailitz_binary
	rename extended_country_name country
	rename kailitz_binary kailitz
	drop if kailitz ==.
	save "kailitz.dta", replace

	use "paxton.dta"
	rename name country
	rename suffrage paxton
	replace paxton = paxton/100
	save, replace

	use "polity.dta"
	keep ccode scode country year polity
	replace polity =. if polity<-10 
	replace polity = polity/10
	save, replace

	use "svmdi_2016.dta"
	keep country iso year svmdi
	rename svmdi svmdi_2016
	save, replace

	use "svmdi_2018.dta"
	keep country iso year mlindex
	rename mlindex svmdi_2018
	save, replace

	use "democracy.dta"
	keep extended_country_name GWn cown year svolik_democracy
	rename extended_country_name country
	rename svolik_democracy svolik
	drop if svolik ==.
	save "svolik.dta", replace

	use "democracy.dta"
	keep extended_country_name GWn cown year uds_2010_mean
	rename extended_country_name country
	rename uds_2010_mean uds_2010
	drop if uds_2010 ==.
	save "uds_2010.dta", replace

	use "democracy.dta"
	keep extended_country_name GWn cown year uds_2011_mean
	rename extended_country_name country
	rename uds_2011_mean uds_2011
	drop if uds_2011 ==.
	save "uds_2011.dta", replace

	use "democracy.dta"
	keep extended_country_name GWn cown year uds_2014_mean
	rename extended_country_name country
	rename uds_2014_mean uds_2014
	drop if uds_2014 ==.
	save "uds_2014.dta", replace
	
	use "vdem.dta"
	keep country_name year country_text_id COWcode v2x_polyarchy
	rename country_name country
	rename v2x_polyarchy vdem_ed
	save "vdem_ed.dta", replace

	use "vdem.dta"
	keep country_name year country_text_id COWcode v2x_libdem
	rename country_name country
	rename v2x_libdem vdem_ld
	save "vdem_ld.dta", replace

	use "vdem.dta"
	keep country_name year country_text_id COWcode v2x_mpi
	rename country_name country
	rename v2x_mpi vdem_mpi
	save "vdem_mpi.dta", replace

	use "vdem.dta"
	keep country_name year country_text_id COWcode v2x_suffr
	rename country_name country
	rename v2x_suffr vdem_suff
	save "vdem_suff.dta", replace
	
	use "vdem.dta"
	keep country_name year country_text_id COWcode v2x_api
	rename country_name country
	rename v2x_api vdem_api
	save "vdem_api.dta", replace
	
	use "democracy.dta"
	keep extended_country_name GWn cown year vanhanen_competition
	rename extended_country_name country
	rename vanhanen_competition vanhanen_c
	replace vanhanen_c = vanhanen_c/100
	save "vanhanen_c.dta", replace
	
	use "democracy.dta"
	keep extended_country_name GWn cown year vanhanen_democratization
	rename extended_country_name country
	rename vanhanen_democratization vanhanen_d
	replace vanhanen_d = vanhanen_d/100
	save "vanhanen_d.dta", replace
}
	
***ADJUSTING COUNTRY NAMES***
{
	use "mrld.dta"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_mrld
	rename NAMES_STD country
	save, replace

	use "bmr.dta"
	replace country = proper(country)
	replace country = "Antigua and Barbuda" if country == "Antigua"
	replace country = "Central African Republic" if country == "Central African Rep."
	replace country = "Micronesia" if country == "Micronesia, Fed."
	replace country = "Saint Kitts and Nevis" if country == "St. Kitts & Nevis"
	replace country = "Saint Vincent and the Grenadines" if country == "St. Vincent & Gren."
	replace country = "Samoa" if country == "Samoa (Western)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_bmr
	rename NAMES_STD country
	save, replace

	use "bmr_omitted.dta"
	replace country = proper(country)
	replace country = "Antigua and Barbuda" if country == "Antigua"
	replace country = "Central African Republic" if country == "Central African Rep."
	replace country = "Micronesia" if country == "Micronesia, Fed."
	replace country = "Saint Kitts and Nevis" if country == "St. Kitts & Nevis"
	replace country = "Saint Vincent and the Grenadines" if country == "St. Vincent & Gren."
	replace country = "Samoa" if country == "Samoa (Western)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_bmr_omitted
	rename NAMES_STD country
	save, replace

	use "bollen.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_bollen
	rename NAMES_STD country
	save, replace

	use "cheibub.dta"
	replace country = "Democratic Republic of Congo" if country =="Democratic Republic of the Congo (Zaire, Congo-Kinshasha)"
	replace country = "Congo" if country =="Congo (Brazzaville, Republic of Congo)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_cheibub
	rename NAMES_STD country
	save, replace

	use "coppedge_c.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	replace country = "Macedonia" if country == "Macedonia (Former Yugoslav Republic of)"
	replace country = "Russia" if country == "Russia (Soviet Union)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_coppedge_c
	rename NAMES_STD country
	save, replace

	use "coppedge_i.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	replace country = "Macedonia" if country == "Macedonia (Former Yugoslav Republic of)"
	replace country = "Russia" if country == "Russia (Soviet Union)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_coppedge_i
	rename NAMES_STD country
	save, replace

	use "fh_cl.dta"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_fh_cl
	rename NAMES_STD country
	save, replace

	use "fh_pr.dta"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_fh_pr
	rename NAMES_STD country
	save, replace

	use "fh_mean.dta"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_fh_mean
	rename NAMES_STD country
	save, replace

	use "gwf.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo/Zaire"
	replace country = "Congo" if country == "Congo-Brz"
	replace country = "Russia" if country == "Soviet Union"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_gwf
	rename NAMES_STD country
	save, replace

	use "kailitz.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	replace country = "Macedonia" if country == "Macedonia (Former Yugoslav Republic of)"
	replace country = "Russia" if country == "Russia (Soviet Union)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_kailitz
	rename NAMES_STD country
	save, replace

	use "paxton.dta"
	replace country = proper(country)
	replace country = "Afghanistan" if country =="Afghanis"
	replace country = "Antigua and Barbuda" if country == "Antigua"
	replace country = "Bosnia and Herzegovina" if country == "Bosnia-Herz"
	replace country = "Central African Republic" if country == "Central African Rep"
	replace country = "Democratic Republic of Congo" if country == "Dem Rep Of Congo"
	replace country = "Equatorial Guinea" if country == "Equatori"
	replace country = "Guinea-Bissau" if country == "Guinea B"
	replace country = "North Korea" if country == "Korea N-(Dpr)"
	replace country = "South Korea" if country =="Korea S-(Rok)"
	replace country = "Papua New Guinea" if country == "Papua New"
	replace country = "Sao Tome and Principe" if country == "Sao Tome"
	replace country = "Sierra Leone" if country == "Sierra Leon"
	replace country = "Solomon Islands" if country == "Solomon"
	replace country = "Russia" if country == "Soviet Union"
	replace country = "Saint Kitts and Nevis" if country == "St Kitts Nevis"
	replace country = "Saint Vincent and the Grenadines" if country == "St Vincent"
	replace country = "United Arab Emirates" if country == "United Arab E"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_paxton
	rename NAMES_STD country
	save, replace

	use "polity.dta"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_polity
	rename NAMES_STD country
	save, replace

	use "svmdi_2016.dta"
	replace country = "Russia" if country == "Soviet Union"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_svmdi_2016
	rename NAMES_STD country
	save, replace

	use "svmdi_2018.dta"
	replace country = "Myanmar" if country == "Burma_Myanmar"
	replace country = "Democratic Republic of Congo" if country == "Congo_Democratic Republic of"
	replace country = "Congo" if country == "Congo_Republic of the"
	replace country = "North Korea" if country == "Korea_North"
	replace country = "South Korea" if country == "Korea_South"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_svmdi_2018
	rename NAMES_STD country
	save, replace

	use "svolik.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	replace country = "Macedonia" if country == "Macedonia (Former Yugoslav Republic of)"
	replace country = "Russia" if country == "Russia (Soviet Union)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_svolik
	rename NAMES_STD country
	save, replace

	use "uds_2010.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	replace country = "Macedonia" if country == "Macedonia (Former Yugoslav Republic of)"
	replace country = "Russia" if country == "Russia (Soviet Union)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_uds_2010
	rename NAMES_STD country
	save, replace

	use "uds_2011.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	replace country = "Macedonia" if country == "Macedonia (Former Yugoslav Republic of)"
	replace country = "Russia" if country == "Russia (Soviet Union)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_uds_2011
	rename NAMES_STD country
	save, replace

	use "uds_2014.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	replace country = "Macedonia" if country == "Macedonia (Former Yugoslav Republic of)"
	replace country = "Russia" if country == "Russia (Soviet Union)"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_uds_2014
	rename NAMES_STD country
	save, replace

	use "vdem_ed.dta"
	replace country = "Congo" if country == "Republic of the Congo"
	replace country = "Sao Tome and Principe" if country == "São Tomé och Príncipe"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_vdem_ed
	rename NAMES_STD country
	save, replace

	use "vdem_ld.dta"
	replace country = "Congo" if country == "Republic of the Congo"
	replace country = "Sao Tome and Principe" if country == "São Tomé och Príncipe"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_vdem_ld
	rename NAMES_STD country
	save, replace

	use "vdem_suff.dta"
	replace country = "Congo" if country == "Republic of the Congo"
	replace country = "Sao Tome and Principe" if country == "São Tomé och Príncipe"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_vdem_suff
	rename NAMES_STD country
	save, replace

	use "vdem_mpi.dta"
	replace country = "Congo" if country == "Republic of the Congo"
	replace country = "Sao Tome and Principe" if country == "São Tomé och Príncipe"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_vdem_mpi
	rename NAMES_STD country
	save, replace
	
	use "vdem_api.dta"
	replace country = "Congo" if country == "Republic of the Congo"
	replace country = "Sao Tome and Principe" if country == "São Tomé och Príncipe"
	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_vdem_api
	rename NAMES_STD country
	save, replace
	
	use "vanhanen_c.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	replace country = "Macedonia" if country == "Macedonia (Former Yugoslav Republic of)"
	replace country = "Russia" if country == "Russia (Soviet Union)"

	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_vanhanen_c
	rename NAMES_STD country
	save, replace
	
	use "vanhanen_d.dta"
	replace country = "Democratic Republic of Congo" if country =="Congo, Democratic Republic of (Zaire)"
	replace country = "Madagascar" if country == "Madagascar (Malagasy)"
	replace country = "Samoa" if country == "Samoa/Western Samoa"
	replace country = "Turkey" if country == "Turkey (Ottoman Empire)"
	replace country = "Yemen" if country == "Yemen (Arab Republic of Yemen)"
	replace country = "North Korea" if country == "Korea, People's Republic of"
	replace country = "Macedonia" if country == "Macedonia (Former Yugoslav Republic of)"
	replace country = "Russia" if country == "Russia (Soviet Union)"

	kountry country, from(other) m st
	drop if MARKER==0
	drop MARKER
	rename _ISO3N_ iso3n
	kountry iso3n, from(iso3n) to(iso3c) m
	drop if MARKER==0
	rename _ISO3C_ iso3c
	drop MARKER
	rename country country_vanhanen_d
	rename NAMES_STD country
	save, replace
}
***CREATING DEMOCRACY AVERAGES***
{
	clear
	foreach x in bmr bmr_omitted bollen paxton polity vdem_ed vdem_ld vdem_suff vdem_mpi vdem_api svolik gwf cheibub svmdi_2018 kailitz coppedge_i coppedge_c uds_2010 uds_2011 uds_2014 vanhanen_c vanhanen_d{
		***1950***
		use "`x'.dta"
		foreach n of numlist 1960 1970 1980 1990 1994 2000 2007 2010{
			preserve
			cap n keep country year `x'
			cap n keep if year>1949 & year<=`n'
			cap n bysort country: egen `x'1950`n'= mean(`x')
			cap n keep country `x'1950`n'
			cap n duplicates drop
			cap n save "`x'1950`n'.dta", replace
			restore

			preserve
			cap n keep country year `x'
			cap n keep if year>1949 
			cap n bysort country: egen `x'1950max= mean(`x')
			cap n keep country `x'1950max
			cap n duplicates drop
			cap n save "`x'1950max.dta", replace
			restore
		}
		***1960***
		use "`x'.dta"
		foreach n of numlist 1970 1980 1990 1994 2000 2007 2010{
			preserve
			cap n keep country year `x'
			cap n keep if year>1959 & year<=`n'
			cap n bysort country: egen `x'1960`n'= mean(`x')
			cap n keep country `x'1960`n'
			cap n duplicates drop
			cap n save "`x'1960`n'.dta", replace
			restore
			
			preserve
			cap n keep country year `x'
			cap n keep if year>1959 
			cap n bysort country: egen `x'1960max= mean(`x')
			cap n keep country `x'1960max
			cap n duplicates drop
			cap n save "`x'1960max.dta", replace
			restore
		}
		***1970***
		use "`x'.dta"
		foreach n of numlist 1980 1990 1994 2000 2007 2010{
			preserve
			cap n keep country year `x'
			cap n keep if year>1969 & year<=`n'
			cap n bysort country: egen `x'1970`n'= mean(`x')
			cap n keep country `x'1970`n'
			cap n duplicates drop
			cap n save "`x'1970`n'.dta", replace
			restore

			preserve
			cap n keep country year `x'
			cap n keep if year>1969 
			cap n bysort country: egen `x'1970max= mean(`x')
			cap n keep country `x'1970max
			cap n duplicates drop
			cap n save "`x'1970max.dta", replace
			restore
		}
		***1980***
		use "`x'.dta"
		foreach n of numlist 1990 1994 2000 2007 2010{
			preserve
			cap n keep country year `x'
			cap n keep if year>1979 & year<=`n'
			cap n bysort country: egen `x'1980`n'= mean(`x')
			cap n keep country `x'1980`n'
			cap n duplicates drop
			cap n save "`x'1980`n'.dta", replace
			restore
			
			preserve
			cap n keep country year `x'
			cap n keep if year>1979 
			cap n bysort country: egen `x'1980max= mean(`x')
			cap n keep country `x'1980max
			cap n duplicates drop
			cap n save "`x'1980max.dta", replace
			restore
		}
		***1990***
		use "`x'.dta"
		foreach n of numlist 2000 2007 2010{
			preserve
			cap n keep country year `x'
			cap n keep if year>1989 & year<=`n'
			cap n bysort country: egen `x'1990`n'= mean(`x')
			cap n keep country `x'1990`n'
			cap n duplicates drop
			cap n save "`x'1990`n'.dta", replace
			restore

			preserve
			cap n keep country year `x'
			cap n keep if year>1989 
			cap n bysort country: egen `x'1990max= mean(`x')
			cap n keep country `x'1990max
			cap n duplicates drop
			cap n save "`x'1990max.dta", replace
			restore
		}
		***2000***
		use "`x'.dta"
		foreach n of numlist 2010{
			preserve
			cap n keep country year `x'
			cap n keep if year>1999 & year<=`n'
			cap n bysort country: egen `x'2000`n'= mean(`x')
			cap n keep country `x'2000`n'
			cap n duplicates drop
			cap n save "`x'2000`n'.dta", replace
			restore

			preserve
			cap n keep country year `x'
			cap n keep if year>1999 
			cap n bysort country: egen `x'2000max= mean(`x')
			cap n keep country `x'2000max
			cap n duplicates drop
			cap n save "`x'2000max.dta", replace
			restore
		}
	}
	clear
	
	***Freedom House***
	***1972***
	foreach x in fh_cl fh_pr fh_mean{
		use "`x'.dta"
		foreach n of numlist 1990 1994 2000 2007 2010{
			preserve
			cap n keep country year `x'
			cap n keep if year<=`n'
			cap n bysort country: egen `x'1972`n'= mean(`x')
			cap n keep country `x'1972`n'
			cap n duplicates drop
			cap n save "`x'1972`n'.dta", replace
			restore
		}	
			preserve
			cap n keep country year `x'
			cap n bysort country: egen `x'1972max= mean(`x')
			cap n keep country `x'1972max
			cap n duplicates drop
			cap n save "`x'1972max.dta", replace
			restore

	***1980***
		use "`x'.dta"
		foreach n of numlist 1990 1994 2000 2007 2010{
			preserve
			cap n keep country year `x'
			cap n keep if year>1979 & year<=`n'
			cap n bysort country: egen `x'1980`n'= mean(`x')
			cap n keep country `x'1980`n'
			cap n duplicates drop
			cap n save "`x'1980`n'.dta", replace
			restore
		}	
			preserve
			cap n keep country year `x'
			cap n keep if year>1979 
			cap n bysort country: egen `x'1980max= mean(`x')
			cap n keep country `x'1980max
			cap n duplicates drop
			cap n save "`x'1980max.dta", replace
			restore
	***1990***
	use "`x'.dta"
			foreach n of numlist 2000 2007 2010{
				preserve
				cap n keep country year `x'
				cap n keep if year>1989 & year<=`n'
				cap n bysort country: egen `x'1990`n'= mean(`x')
				cap n keep country `x'1990`n'
				cap n duplicates drop
				cap n save "`x'1990`n'.dta", replace
				restore
			}
				preserve
				cap n keep country year `x'
				cap n keep if year>1989 
				cap n bysort country: egen `x'1990max= mean(`x')
				cap n keep country `x'1990max
				cap n duplicates drop
				cap n save "`x'1990max.dta", replace
				restore

	***2000***
	use "`x'.dta"
			foreach n of numlist 2010{
				preserve
				cap n keep country year `x'
				cap n keep if year>1999 & year<=`n'
				cap n bysort country: egen `x'2000`n'= mean(`x')
				cap n keep country `x'2000`n'
				cap n duplicates drop
				cap n save "`x'2000`n'.dta", replace
				restore
			}	
				preserve
				cap n keep country year `x'
				cap n keep if year>1999 
				cap n bysort country: egen `x'2000max= mean(`x')
				cap n keep country `x'2000max
				cap n duplicates drop
				cap n save "`x'2000max.dta", replace
				restore
	}
	clear
	
	***SVMDI 2016***
	***1981***
	foreach x in svmdi_2016{
	use "`x'.dta"
			foreach n of numlist 1994 2000 2007 2010{
				preserve
				cap n keep country year `x'
				cap n keep if year<=`n'
				cap n bysort country: egen `x'1981`n'= mean(`x')
				cap n keep country `x'1981`n'
				cap n duplicates drop
				cap n save "`x'1981`n'.dta", replace
				restore
			}
				preserve
				cap n keep country year `x'
				cap n bysort country: egen `x'1981max= mean(`x')
				cap n keep country `x'1981max
				cap n duplicates drop
				cap n save "`x'1981max.dta", replace
				restore
	***1990***
	use "`x'.dta"
			foreach n of numlist 2000 2007 2010{
				preserve
				cap n keep country year `x'
				cap n keep if year>1989 & year<=`n'
				cap n bysort country: egen `x'1990`n'= mean(`x')
				cap n keep country `x'1990`n'
				cap n duplicates drop
				cap n save "`x'1990`n'.dta", replace
				restore
			}	
				preserve
				cap n keep country year `x'
				cap n keep if year>1989 
				cap n bysort country: egen `x'1990max= mean(`x')
				cap n keep country `x'1990max
				cap n duplicates drop
				cap n save "`x'1990max.dta", replace
				restore
	***2000***
	use "`x'.dta"
			foreach n of numlist 2010{
				preserve
				cap n keep country year `x'
				cap n keep if year>1999 & year<=`n'
				cap n bysort country: egen `x'2000`n'= mean(`x')
				cap n keep country `x'2000`n'
				cap n duplicates drop
				cap n save "`x'2000`n'.dta", replace
				restore
			}	
				preserve
				cap n keep country year `x'
				cap n keep if year>1999 
				cap n bysort country: egen `x'2000max= mean(`x')
				cap n keep country `x'2000max
				cap n duplicates drop
				cap n save "`x'2000max.dta", replace
				restore
	}
	clear
}
***MERGING***
{
	use "mrld.dta"
	save "master.dta", replace
	use "master.dta"
	foreach x in polity19501960 polity19501970 polity19501980 polity19501990 polity19501994 polity19502000 polity19502007 polity19502010 polity1950max polity19601970 polity19601980 polity19601990 polity19601994 polity19602000 polity19602007 polity19602010 polity1960max polity19701980 polity19701990 polity19701994 polity19702000 polity19702007 polity19702010 polity1970max polity19801990 polity19801994 polity19802000 polity19802007 polity19802010 polity1980max polity19902000 polity19902007 polity19902010 polity1990max polity20002010 polity2000max bmr19501960 bmr19501970 bmr19501980 bmr19501990 bmr19501994 bmr19502000 bmr19502007 bmr19502010 bmr1950max bmr19601970 bmr19601980 bmr19601990 bmr19601994 bmr19602000 bmr19602007 bmr19602010 bmr1960max bmr19701980 bmr19701990 bmr19701994 bmr19702000 bmr19702007 bmr19702010 bmr1970max bmr19801990 bmr19801994 bmr19802000 bmr19802007 bmr19802010 bmr1980max bmr19902000 bmr19902007 bmr19902010 bmr1990max bmr20002010 bmr2000max bmr_omitted19501960 bmr_omitted19501970 bmr_omitted19501980 bmr_omitted19501990 bmr_omitted19501994 bmr_omitted19502000 bmr_omitted19502007 bmr_omitted19502010 bmr_omitted1950max bmr_omitted19601970 bmr_omitted19601980 bmr_omitted19601990 bmr_omitted19601994 bmr_omitted19602000 bmr_omitted19602007 bmr_omitted19602010 bmr_omitted1960max bmr_omitted19701980 bmr_omitted19701990 bmr_omitted19701994 bmr_omitted19702000 bmr_omitted19702007 bmr_omitted1970max bmr_omitted19801990 bmr_omitted19801994 bmr_omitted19802000 bmr_omitted19802007 bmr_omitted19802010 bmr_omitted1980max bmr_omitted19902000 bmr_omitted19902007 bmr_omitted19902010 bmr_omitted1990max bmr_omitted20002010 bmr_omitted2000max fh_cl19721990 fh_cl19721994 fh_cl19722000 fh_cl19722007 fh_cl19722010 fh_cl1972max fh_cl19801990 fh_cl19801994 fh_cl19802000 fh_cl19802007 fh_cl19802010 fh_cl1980max fh_cl19902000 fh_cl19902007 fh_cl19902010 fh_cl1990max fh_cl20002010 fh_cl2000max fh_pr19721990 fh_pr19721994 fh_pr19722000 fh_pr19722007 fh_pr19722010 fh_pr1972max fh_pr19801990 fh_pr19801994 fh_pr19802000 fh_pr19802007 fh_pr19802010 fh_pr1980max fh_pr19902000 fh_pr19902007 fh_pr19902010 fh_pr1990max fh_pr20002010 fh_pr2000max fh_mean19721990 fh_mean19721994 fh_mean19722000 fh_mean19722007 fh_mean19722010 fh_mean1972max fh_mean19801990 fh_mean19801994 fh_mean19802000 fh_mean19802007 fh_mean19802010 fh_mean1980max fh_mean19902000 fh_mean19902007 fh_mean19902010 fh_mean1990max fh_mean20002010 fh_mean2000max vdem_ed19501960 vdem_ed19501970 vdem_ed19501980 vdem_ed19501990 vdem_ed19501994 vdem_ed19502000 vdem_ed19502007 vdem_ed19502010 vdem_ed1950max vdem_ed19601970 vdem_ed19601980 vdem_ed19601990 vdem_ed19601994 vdem_ed19602000 vdem_ed19602007 vdem_ed19602010 vdem_ed1960max vdem_ed19701980 vdem_ed19701990 vdem_ed19701994 vdem_ed19702000 vdem_ed19702007 vdem_ed19702010 vdem_ed1970max vdem_ed19801990 vdem_ed19801994 vdem_ed19802000 vdem_ed19802007 vdem_ed19802010 vdem_ed1980max vdem_ed19902000 vdem_ed19902007 vdem_ed19902010 vdem_ed1990max vdem_ed20002010 vdem_ed2000max vdem_ld19501960 vdem_ld19501970 vdem_ld19501980 vdem_ld19501990 vdem_ld19501994 vdem_ld19502000 vdem_ld19502007 vdem_ld19502010 vdem_ld1950max vdem_ld19601970 vdem_ld19601980 vdem_ld19601990 vdem_ld19601994 vdem_ld19602000 vdem_ld19602007 vdem_ld19602010 vdem_ld1960max vdem_ld19701980 vdem_ld19701990 vdem_ld19701994 vdem_ld19702000 vdem_ld19702007 vdem_ld19702010 vdem_ld1970max vdem_ld19801990 vdem_ld19801994 vdem_ld19802000 vdem_ld19802007 vdem_ld19802010 vdem_ld1980max vdem_ld19902000 vdem_ld19902007 vdem_ld19902010 vdem_ld1990max vdem_ld20002010 vdem_ld2000max vdem_suff19501960 vdem_suff19501970 vdem_suff19501980 vdem_suff19501990 vdem_suff19501994 vdem_suff19502000 vdem_suff19502007 vdem_suff19502010 vdem_suff1950max vdem_suff19601970 vdem_suff19601980 vdem_suff19601990 vdem_suff19601994 vdem_suff19602000 vdem_suff19602007 vdem_suff19602010 vdem_suff1960max vdem_suff19701980 vdem_suff19701990 vdem_suff19701994 vdem_suff19702000 vdem_suff19702007 vdem_suff19702010 vdem_suff1970max vdem_suff19801990 vdem_suff19801994 vdem_suff19802000 vdem_suff19802007 vdem_suff19802010 vdem_suff1980max vdem_suff19902000 vdem_suff19902007 vdem_suff19902010 vdem_suff1990max vdem_suff20002010 vdem_suff2000max vdem_mpi19501960 vdem_mpi19501970 vdem_mpi19501980 vdem_mpi19501990 vdem_mpi19501994 vdem_mpi19502000 vdem_mpi19502007 vdem_mpi19502010 vdem_mpi1950max vdem_mpi19601970 vdem_mpi19601980 vdem_mpi19601990 vdem_mpi19601994 vdem_mpi19602000 vdem_mpi19602007 vdem_mpi19602010 vdem_mpi1960max vdem_mpi19701980 vdem_mpi19701990 vdem_mpi19701994 vdem_mpi19702000 vdem_mpi19702007 vdem_mpi19702010 vdem_mpi1970max vdem_mpi19801990 vdem_mpi19801994 vdem_mpi19802000 vdem_mpi19802007 vdem_mpi19802010 vdem_mpi1980max vdem_mpi19902000 vdem_mpi19902007 vdem_mpi19902010 vdem_mpi1990max vdem_mpi20002010 vdem_mpi2000max vdem_api19501960 vdem_api19501970 vdem_api19501980 vdem_api19501990 vdem_api19501994 vdem_api19502000 vdem_api19502007 vdem_api19502010 vdem_api1950max vdem_api19601970 vdem_api19601980 vdem_api19601990 vdem_api19601994 vdem_api19602000 vdem_api19602007 vdem_api19602010 vdem_api1960max vdem_api19701980 vdem_api19701990 vdem_api19701994 vdem_api19702000 vdem_api19702007 vdem_api19702010 vdem_api1970max vdem_api19801990 vdem_api19801994 vdem_api19802000 vdem_api19802007 vdem_api19802010 vdem_api1980max vdem_api19902000 vdem_api19902007 vdem_api19902010 vdem_api1990max vdem_api20002010 vdem_api2000max svolik19501960 svolik19501970 svolik19501980 svolik19501990 svolik19501994 svolik19502000 svolik19502007 svolik1950max svolik19601970 svolik19601980 svolik19601990 svolik19601994 svolik19602000 svolik19602007 svolik1960max svolik19701980 svolik19701990 svolik19701994 svolik19702000 svolik19702007 svolik1970max svolik19801990 svolik19801994 svolik19802000 svolik19802007 svolik1980max svolik19902000 svolik19902007 svolik1990max gwf19501960 gwf19501970 gwf19501980 gwf19501990 gwf19501994 gwf19502000 gwf19502007 gwf19502010 gwf19601970 gwf19601980 gwf19601990 gwf19601994 gwf19602000 gwf19602007 gwf19602010 gwf19701980 gwf19701990 gwf19701994 gwf19702000 gwf19702007 gwf19702010 gwf19801990 gwf19801994 gwf19802000 gwf19802007 gwf19802010 gwf19902000 gwf19902007 gwf19902010 gwf20002010 cheibub19501960 cheibub19501970 cheibub19501980 cheibub19501990 cheibub19501994 cheibub19502000 cheibub19502007 cheibub1950max cheibub19601970 cheibub19601980 cheibub19601990 cheibub19601994 cheibub19602000 cheibub19602007 cheibub1960max cheibub19701980 cheibub19701990 cheibub19701994 cheibub19702000 cheibub19702007 cheibub1970max cheibub19801990 cheibub19801994 cheibub19802000 cheibub19802007 cheibub1980max cheibub19902000 cheibub19902007 cheibub1990max svmdi_201619811994 svmdi_201619812000 svmdi_201619812007 svmdi_201619812010 svmdi_20161981max svmdi_201619902000 svmdi_201619902007 svmdi_201619902010 svmdi_20161990max svmdi_201620002010 svmdi_20162000max svmdi_201819501960 svmdi_201819501970 svmdi_201819501980 svmdi_201819501990 svmdi_201819501994 svmdi_201819502000 svmdi_201819502007 svmdi_201819502010 svmdi_20181950max svmdi_201819601970 svmdi_201819601980 svmdi_201819601990 svmdi_201819601994 svmdi_201819602000 svmdi_201819602007 svmdi_201819602010 svmdi_20181960max svmdi_201819701980 svmdi_201819701990 svmdi_201819701994 svmdi_201819702000 svmdi_201819702007 svmdi_201819702010 svmdi_20181970max svmdi_201819801990 svmdi_201819801994 svmdi_201819802000 svmdi_201819802007 svmdi_201819802010 svmdi_20181980max svmdi_201819902000 svmdi_201819902007 svmdi_201819902010 svmdi_20181990max svmdi_201820002010 svmdi_20182000max kailitz19501960 kailitz19501970 kailitz19501980 kailitz19501990 kailitz19501994 kailitz19502000 kailitz19502007 kailitz19502010 kailitz19601970 kailitz19601980 kailitz19601990 kailitz19601994 kailitz19602000 kailitz19602007 kailitz19602010 kailitz19701980 kailitz19701990 kailitz19701994 kailitz19702000 kailitz19702007 kailitz19702010 kailitz19801990 kailitz19801994 kailitz19802000 kailitz19802007 kailitz19802010 kailitz19902000 kailitz19902007 kailitz19902010 kailitz20002010 coppedge_i19501960 coppedge_i19501970 coppedge_i19501980 coppedge_i19501990 coppedge_i19501994 coppedge_i19502000 coppedge_i19601970 coppedge_i19601980 coppedge_i19601990 coppedge_i19601994 coppedge_i19602000 coppedge_i19701980 coppedge_i19701990 coppedge_i19701994 coppedge_i19702000 coppedge_i19801990 coppedge_i19801994 coppedge_i19802000 coppedge_i19902000 coppedge_c19501960 coppedge_c19501970 coppedge_c19501980 coppedge_c19501990 coppedge_c19501994 coppedge_c19502000 coppedge_c19601970 coppedge_c19601980 coppedge_c19601990 coppedge_c19601994 coppedge_c19602000 coppedge_c19701980 coppedge_c19701990 coppedge_c19701994 coppedge_c19702000 coppedge_c19801990 coppedge_c19801994 coppedge_c19802000 coppedge_c19902000 uds_201019501960 uds_201019501970 uds_201019501980 uds_201019501990 uds_201019501994 uds_201019502000 uds_201019601970 uds_201019601980 uds_201019601990 uds_201019601994 uds_201019602000 uds_201019701980 uds_201019701990 uds_201019701994 uds_201019702000 uds_201019801990 uds_201019801994 uds_201019802000 uds_201019902000 uds_201119501960 uds_201119501970 uds_201119501980 uds_201119501990 uds_201119501994 uds_201119502000 uds_201119502007 uds_201119502010 uds_20111950max uds_201119601970 uds_201119601980 uds_201119601990 uds_201119601994 uds_201119602000 uds_201119602007 uds_201119602010 uds_20111960max uds_201119701980 uds_201119701990 uds_201119701994 uds_201119702000 uds_201119702007 uds_201119702010 uds_20111970max uds_201119801990 uds_201119801994 uds_201119802000 uds_201119802007 uds_201119802010 uds_20111980max uds_201119902000 uds_201119902007 uds_201119902010 uds_20111990max uds_201120002010 uds_20112000max uds_201419501960 uds_201419501970 uds_201419501980 uds_201419501990 uds_201419501994 uds_201419502000 uds_201419502007 uds_201419502010 uds_20141950max uds_201419601970 uds_201419601980 uds_201419601990 uds_201419601994 uds_201419602000 uds_201419602007 uds_201419602010 uds_20141960max uds_201419701980 uds_201419701990 uds_201419701994 uds_201419702000 uds_201419702007 uds_201419702010 uds_20141970max uds_201419801990 uds_201419801994 uds_201419802000 uds_201419802007 uds_201419802010 uds_20141980max uds_201419902000 uds_201419902007 uds_201419902010 uds_20141990max uds_201420002010 uds_20142000max bollen19501960 bollen19501970 bollen19501980 bollen19601970 bollen19601980 bollen19701980 paxton19501960 paxton19501970 paxton19501980 paxton19501990 paxton19501994 paxton19502000 paxton19601970 paxton19601980 paxton19601990 paxton19601994 paxton19602000 paxton19701980 paxton19701990 paxton19701994 paxton19702000 paxton19801990 paxton19801994 paxton19802000 paxton19902000 vanhanen_c19501960 vanhanen_c19501970 vanhanen_c19501980 vanhanen_c19501990 vanhanen_c19501994 vanhanen_c19502000 vanhanen_c19502007 vanhanen_c19502010 vanhanen_c1950max vanhanen_c19601970 vanhanen_c19601980 vanhanen_c19601990 vanhanen_c19601994 vanhanen_c19602000 vanhanen_c19602007 vanhanen_c19602010 vanhanen_c1960max vanhanen_c19701980 vanhanen_c19701990 vanhanen_c19701994 vanhanen_c19702000 vanhanen_c19702007 vanhanen_c19702010 vanhanen_c1970max vanhanen_c19801990 vanhanen_c19801994 vanhanen_c19802000 vanhanen_c19802007 vanhanen_c19802010 vanhanen_c1980max vanhanen_c19902000 vanhanen_c19902007 vanhanen_c19902010 vanhanen_c1990max vanhanen_c20002010 vanhanen_c2000max vanhanen_d19501960 vanhanen_d19501970 vanhanen_d19501980 vanhanen_d19501990 vanhanen_d19501994 vanhanen_d19502000 vanhanen_d19502007 vanhanen_d19502010 vanhanen_d1950max vanhanen_d19601970 vanhanen_d19601980 vanhanen_d19601990 vanhanen_d19601994 vanhanen_d19602000 vanhanen_d19602007 vanhanen_d19602010 vanhanen_d1960max vanhanen_d19701980 vanhanen_d19701990 vanhanen_d19701994 vanhanen_d19702000 vanhanen_d19702007 vanhanen_d19702010 vanhanen_d1970max vanhanen_d19801990 vanhanen_d19801994 vanhanen_d19802000 vanhanen_d19802007 vanhanen_d19802010 vanhanen_d1980max vanhanen_d19902000 vanhanen_d19902007 vanhanen_d19902010 vanhanen_d1990max vanhanen_d20002010 vanhanen_d2000max{
		merge m:m country using "`x'.dta"
		drop if _merge ==2
		rename _merge merge_`x'
		save, replace
	}
}
***LABELING***
{
	use "master.dta"	
		***Polity IV***
	{
		label variable polity19501960 "Polity IV 1950-1960"
		label variable polity19501970 "Polity IV 1950-1970"
		label variable polity19501980 "Polity IV 1950-1980"
		label variable polity19501990 "Polity IV 1950-1990"
		label variable polity19501994 "Polity IV 1950-1994"
		label variable polity19502000 "Polity IV 1950-2000"
		label variable polity19502007 "Polity IV 1950-2007"
		label variable polity19502010 "Polity IV 1950-2010"
		label variable polity1950max "Polity IV 1950-2016"
		
		label variable polity19601970 "Polity IV 1960-1970"
		label variable polity19601980 "Polity IV 1960-1980"
		label variable polity19601990 "Polity IV 1960-1990"
		label variable polity19601994 "Polity IV 1960-1994"
		label variable polity19602000 "Polity IV 1960-2000"
		label variable polity19602007 "Polity IV 1960-2007"
		label variable polity19602010 "Polity IV 1960-2010"
		label variable polity1960max "Polity IV 1960-2016"
		
		label variable polity19701980 "Polity IV 1970-1980"
		label variable polity19701990 "Polity IV 1970-1990"
		label variable polity19701994 "Polity IV 1970-1994"
		label variable polity19702000 "Polity IV 1970-2000"
		label variable polity19702007 "Polity IV 1970-2007"
		label variable polity19702010 "Polity IV 1970-2010"
		label variable polity1970max "Polity IV 1970-2016"
		
		label variable polity19801990 "Polity IV 1980-1990"
		label variable polity19801994 "Polity IV 1980-1994"
		label variable polity19802000 "Polity IV 1980-2000"
		label variable polity19802007 "Polity IV 1980-2007"
		label variable polity19802010 "Polity IV 1980-2010"
		label variable polity1980max "Polity IV 1980-2016"
		
		label variable polity19902000 "Polity IV 1990-2000"
		label variable polity19902007 "Polity IV 1990-2007"
		label variable polity19902010 "Polity IV 1990-2010"
		label variable polity1990max "Polity IV 1990-2016"
		
		label variable polity20002010 "Polity IV 2000-2010"
		label variable polity2000max "Polity IV 2000-2016"
	}
	***BMR***
	{
		label variable bmr19501960 "Boix-Miller-Rosato 1950-1960"
		label variable bmr19501970 "Boix-Miller-Rosato 1950-1970"
		label variable bmr19501980 "Boix-Miller-Rosato 1950-1980"
		label variable bmr19501990 "Boix-Miller-Rosato 1950-1990"
		label variable bmr19501994 "Boix-Miller-Rosato 1950-1994"
		label variable bmr19502000 "Boix-Miller-Rosato 1950-2000"
		label variable bmr19502007 "Boix-Miller-Rosato 1950-2007"
		label variable bmr19502010 "Boix-Miller-Rosato 1950-2010"
		label variable bmr1950max "Boix-Miller-Rosato 1950-2015"
		
		label variable bmr19601970 "Boix-Miller-Rosato 1960-1970"
		label variable bmr19601980 "Boix-Miller-Rosato 1960-1980"
		label variable bmr19601990 "Boix-Miller-Rosato 1960-1990"
		label variable bmr19601994 "Boix-Miller-Rosato 1960-1994"
		label variable bmr19602000 "Boix-Miller-Rosato 1960-2000"
		label variable bmr19602007 "Boix-Miller-Rosato 1960-2007"
		label variable bmr19602010 "Boix-Miller-Rosato 1960-2010"
		label variable bmr1960max "Boix-Miller-Rosato 1960-2015"
		
		label variable bmr19701980 "Boix-Miller-Rosato 1970-1980"
		label variable bmr19701990 "Boix-Miller-Rosato 1970-1990"
		label variable bmr19701994 "Boix-Miller-Rosato 1970-1994"
		label variable bmr19702000 "Boix-Miller-Rosato 1970-2000"
		label variable bmr19702007 "Boix-Miller-Rosato 1970-2007"
		label variable bmr19702010 "Boix-Miller-Rosato 1970-2010"
		label variable bmr1970max "Boix-Miller-Rosato 1970-2015"
		
		label variable bmr19801990 "Boix-Miller-Rosato 1980-1990"
		label variable bmr19801994 "Boix-Miller-Rosato 1980-1994"
		label variable bmr19802000 "Boix-Miller-Rosato 1980-2000"
		label variable bmr19802007 "Boix-Miller-Rosato 1980-2007"
		label variable bmr19802010 "Boix-Miller-Rosato 1980-2010"
		label variable bmr1980max "Boix-Miller-Rosato 1980-2015"
		
		label variable bmr19902000 "Boix-Miller-Rosato 1990-2000"
		label variable bmr19902007 "Boix-Miller-Rosato 1990-2007"
		label variable bmr19902010 "Boix-Miller-Rosato 1990-2010"
		label variable bmr1990max "Boix-Miller-Rosato 1990-2015"
		
		label variable bmr20002010 "Boix-Miller-Rosato 2000-2010"
		label variable bmr2000max "Boix-Miller-Rosato 2000-2015"
	}
	***BMR Omitted***
	{
		label variable bmr_omitted19501960 "Boix-Miller-Rosato Omitted 1950-1960"
		label variable bmr_omitted19501970 "Boix-Miller-Rosato Omitted 1950-1970"
		label variable bmr_omitted19501980 "Boix-Miller-Rosato Omitted 1950-1980"
		label variable bmr_omitted19501990 "Boix-Miller-Rosato Omitted 1950-1990"
		label variable bmr_omitted19501994 "Boix-Miller-Rosato Omitted 1950-1994"
		label variable bmr_omitted19502000 "Boix-Miller-Rosato Omitted 1950-2000"
		label variable bmr_omitted19502007 "Boix-Miller-Rosato Omitted 1950-2007"
		label variable bmr_omitted19502010 "Boix-Miller-Rosato Omitted 1950-2010"
		label variable bmr_omitted1950max "Boix-Miller-Rosato Omitted 1950-2015"
		
		label variable bmr_omitted19601970 "Boix-Miller-Rosato Omitted 1960-1970"
		label variable bmr_omitted19601980 "Boix-Miller-Rosato Omitted 1960-1980"
		label variable bmr_omitted19601990 "Boix-Miller-Rosato Omitted 1960-1990"
		label variable bmr_omitted19601994 "Boix-Miller-Rosato Omitted 1960-1994"
		label variable bmr_omitted19602000 "Boix-Miller-Rosato Omitted 1960-2000"
		label variable bmr_omitted19602007 "Boix-Miller-Rosato Omitted 1960-2007"
		label variable bmr_omitted19602010 "Boix-Miller-Rosato Omitted 1960-2010"
		label variable bmr_omitted1960max "Boix-Miller-Rosato Omitted 1960-2015"
		
		label variable bmr_omitted19701980 "Boix-Miller-Rosato Omitted 1970-1980"
		label variable bmr_omitted19701990 "Boix-Miller-Rosato Omitted 1970-1990"
		label variable bmr_omitted19701994 "Boix-Miller-Rosato Omitted 1970-1994"
		label variable bmr_omitted19702000 "Boix-Miller-Rosato Omitted 1970-2000"
		label variable bmr_omitted19702007 "Boix-Miller-Rosato Omitted 1970-2007"
		label variable bmr_omitted1970max "Boix-Miller-Rosato Omitted 1970-2015"
		
		label variable bmr_omitted19801990 "Boix-Miller-Rosato Omitted 1980-1990"
		label variable bmr_omitted19801994 "Boix-Miller-Rosato Omitted 1980-1994"
		label variable bmr_omitted19802000 "Boix-Miller-Rosato Omitted 1980-2000"
		label variable bmr_omitted19802007 "Boix-Miller-Rosato Omitted 1980-2007"
		label variable bmr_omitted19802010 "Boix-Miller-Rosato Omitted 1980-2010"
		label variable bmr_omitted1980max "Boix-Miller-Rosato Omitted 1980-2015"
		
		label variable bmr_omitted19902000 "Boix-Miller-Rosato Omitted 1990-2000"
		label variable bmr_omitted19902007 "Boix-Miller-Rosato Omitted 1990-2007"
		label variable bmr_omitted19902010 "Boix-Miller-Rosato Omitted 1990-2010"
		label variable bmr_omitted1990max "Boix-Miller-Rosato Omitted 1990-2015"
		
		label variable bmr_omitted20002010 "Boix-Miller-Rosato Omitted 2000-2010"
		label variable bmr_omitted2000max "Boix-Miller-Rosato Omitted 2000-2015"
		}
	***Freedom House Civil Liberties***
	{
		label variable fh_cl19721990 "FH Civil Liberties 1972-1990"
		label variable fh_cl19721994 "FH Civil Liberties 1972-1994"
		label variable fh_cl19722000 "FH Civil Liberties 1972-2000"
		label variable fh_cl19722007 "FH Civil Liberties 1972-2007"
		label variable fh_cl19722010 "FH Civil Liberties 1972-2010"
		label variable fh_cl1972max "FH Civil Liberties 1972-2015"
		
		label variable fh_cl19801990 "FH Civil Liberties 1980-1990"
		label variable fh_cl19801994 "FH Civil Liberties 1980-1994"
		label variable fh_cl19802000 "FH Civil Liberties 1980-2000"
		label variable fh_cl19802007 "FH Civil Liberties 1980-2007"
		label variable fh_cl19802010 "FH Civil Liberties 1980-2010"
		label variable fh_cl1980max "FH Civil Liberties 1980-2015"
		
		label variable fh_cl19902000 "FH Civil Liberties 1990-2000"
		label variable fh_cl19902007 "FH Civil Liberties 1990-2007"
		label variable fh_cl19902010 "FH Civil Liberties 1990-2010"
		label variable fh_cl1990max "FH Civil Liberties 1990-2015"
		
		label variable fh_cl20002010 "FH Civil Liberties 2000-2010"
		label variable fh_cl2000max "FH Civil Liberties 2000-2015"
		}
	***Freedom House Political Rights***
	{
		label variable fh_pr19721990 "FH Political Rights 1972-1990"
		label variable fh_pr19721994 "FH Political Rights 1972-1994"
		label variable fh_pr19722000 "FH Political Rights 1972-2000"
		label variable fh_pr19722007 "FH Political Rights 1972-2007"
		label variable fh_pr19722010 "FH Political Rights 1972-2010"
		label variable fh_pr1972max "FH Political Rights 1972-2015"
		
		label variable fh_pr19801990 "FH Political Rights 1980-1990"
		label variable fh_pr19801994 "FH Political Rights 1980-1994"
		label variable fh_pr19802000 "FH Political Rights 1980-2000"
		label variable fh_pr19802007 "FH Political Rights 1980-2007"
		label variable fh_pr19802010 "FH Political Rights 1980-2010"
		label variable fh_pr1980max "FH Political Rights 1980-2015"
		
		label variable fh_pr19902000 "FH Political Rights 1990-2000"
		label variable fh_pr19902007 "FH Political Rights 1990-2007"
		label variable fh_pr19902010 "FH Political Rights 1990-2010"
		label variable fh_pr1990max "FH Political Rights 1990-2015"
		
		label variable fh_pr20002010 "FH Political Rights 2000-2010"
		label variable fh_pr2000max "FH Political Rights 2000-2015"
		}
	***Freedom House Mean***
	{
		label variable fh_mean19721990 "FH Mean 1972-1990"
		label variable fh_mean19721994 "FH Mean 1972-1994"
		label variable fh_mean19722000 "FH Mean 1972-2000"
		label variable fh_mean19722007 "FH Mean 1972-2007"
		label variable fh_mean19722010 "FH Mean 1972-2010"
		label variable fh_mean1972max "FH Mean 1972-2015"
		
		label variable fh_mean19801990 "FH Mean 1980-1990"
		label variable fh_mean19801994 "FH Mean 1980-1994"
		label variable fh_mean19802000 "FH Mean 1980-2000"
		label variable fh_mean19802007 "FH Mean 1980-2007"
		label variable fh_mean19802010 "FH Mean 1980-2010"
		label variable fh_mean1980max "FH Mean 1980-2015"
		
		label variable fh_mean19902000 "FH Mean 1990-2000"
		label variable fh_mean19902007 "FH Mean 1990-2007"
		label variable fh_mean19902010 "FH Mean 1990-2010"
		label variable fh_mean1990max "FH Mean 1990-2015"
		
		label variable fh_mean20002010 "FH Mean 2000-2010"
		label variable fh_mean2000max "FH Mean 2000-2015"

	}
	***V-Dem Electoral Democracy***
	{
		label variable vdem_ed19501960 "V-Dem Electoral Democracy 1950-1960"
		label variable vdem_ed19501970 "V-Dem Electoral Democracy 1950-1970"
		label variable vdem_ed19501980 "V-Dem Electoral Democracy 1950-1980"
		label variable vdem_ed19501990 "V-Dem Electoral Democracy 1950-1990"
		label variable vdem_ed19501994 "V-Dem Electoral Democracy 1950-1994"
		label variable vdem_ed19502000 "V-Dem Electoral Democracy 1950-2000"
		label variable vdem_ed19502007 "V-Dem Electoral Democracy 1950-2007"
		label variable vdem_ed19502010 "V-Dem Electoral Democracy 1950-2010"
		label variable vdem_ed1950max "V-Dem Electoral Democracy 1950-2016"
		
		label variable vdem_ed19601970 "V-Dem Electoral Democracy 1960-1970"
		label variable vdem_ed19601980 "V-Dem Electoral Democracy 1960-1980"
		label variable vdem_ed19601990 "V-Dem Electoral Democracy 1960-1990"
		label variable vdem_ed19601994 "V-Dem Electoral Democracy 1960-1994"
		label variable vdem_ed19602000 "V-Dem Electoral Democracy 1960-2000"
		label variable vdem_ed19602007 "V-Dem Electoral Democracy 1960-2007"
		label variable vdem_ed19602010 "V-Dem Electoral Democracy 1960-2010"
		label variable vdem_ed1960max "V-Dem Electoral Democracy 1960-2016"
		
		label variable vdem_ed19701980 "V-Dem Electoral Democracy 1970-1980"
		label variable vdem_ed19701990 "V-Dem Electoral Democracy 1970-1990"
		label variable vdem_ed19701994 "V-Dem Electoral Democracy 1970-1994"
		label variable vdem_ed19702000 "V-Dem Electoral Democracy 1970-2000"
		label variable vdem_ed19702007 "V-Dem Electoral Democracy 1970-2007"
		label variable vdem_ed19702010 "V-Dem Electoral Democracy 1970-2010"
		label variable vdem_ed1970max "V-Dem Electoral Democracy 1970-2016"
		
		label variable vdem_ed19801990 "V-Dem Electoral Democracy 1980-1990"
		label variable vdem_ed19801994 "V-Dem Electoral Democracy 1980-1994"
		label variable vdem_ed19802000 "V-Dem Electoral Democracy 1980-2000"
		label variable vdem_ed19802007 "V-Dem Electoral Democracy 1980-2007"
		label variable vdem_ed19802010 "V-Dem Electoral Democracy 1980-2010"
		label variable vdem_ed1980max "V-Dem Electoral Democracy 1980-2016"
		
		label variable vdem_ed19902000 "V-Dem Electoral Democracy 1990-2000"
		label variable vdem_ed19902007 "V-Dem Electoral Democracy 1990-2007"
		label variable vdem_ed19902010 "V-Dem Electoral Democracy 1990-2010"
		label variable vdem_ed1990max "V-Dem Electoral Democracy 1990-2016"
		
		label variable vdem_ed20002010 "V-Dem Electoral Democracy 2000-2010"
		label variable vdem_ed2000max "V-Dem Electoral Democracy 2000-2016"
	}
		***V-Dem Liberal Democracy***
	{
		label variable vdem_ld19501960 "V-Dem Liberal Democracy 1950-1960"
		label variable vdem_ld19501970 "V-Dem Liberal Democracy 1950-1970"
		label variable vdem_ld19501980 "V-Dem Liberal Democracy 1950-1980"
		label variable vdem_ld19501990 "V-Dem Liberal Democracy 1950-1990"
		label variable vdem_ld19501994 "V-Dem Liberal Democracy 1950-1994"
		label variable vdem_ld19502000 "V-Dem Liberal Democracy 1950-2000"
		label variable vdem_ld19502007 "V-Dem Liberal Democracy 1950-2007"
		label variable vdem_ld19502010 "V-Dem Liberal Democracy 1950-2010"
		label variable vdem_ld1950max "V-Dem Liberal Democracy 1950-2016"
		
		label variable vdem_ld19601970 "V-Dem Liberal Democracy 1960-1970"
		label variable vdem_ld19601980 "V-Dem Liberal Democracy 1960-1980"
		label variable vdem_ld19601990 "V-Dem Liberal Democracy 1960-1990"
		label variable vdem_ld19601994 "V-Dem Liberal Democracy 1960-1994"
		label variable vdem_ld19602000 "V-Dem Liberal Democracy 1960-2000"
		label variable vdem_ld19602007 "V-Dem Liberal Democracy 1960-2007"
		label variable vdem_ld19602010 "V-Dem Liberal Democracy 1960-2010"
		label variable vdem_ld1960max "V-Dem Liberal Democracy 1960-2016"
		
		label variable vdem_ld19701980 "V-Dem Liberal Democracy 1970-1980"
		label variable vdem_ld19701990 "V-Dem Liberal Democracy 1970-1990"
		label variable vdem_ld19701994 "V-Dem Liberal Democracy 1970-1994"
		label variable vdem_ld19702000 "V-Dem Liberal Democracy 1970-2000"
		label variable vdem_ld19702007 "V-Dem Liberal Democracy 1970-2007"
		label variable vdem_ld19702010 "V-Dem Liberal Democracy 1970-2010"
		label variable vdem_ld1970max "V-Dem Liberal Democracy 1970-2016"
		
		label variable vdem_ld19801990 "V-Dem Liberal Democracy 1980-1990"
		label variable vdem_ld19801994 "V-Dem Liberal Democracy 1980-1994"
		label variable vdem_ld19802000 "V-Dem Liberal Democracy 1980-2000"
		label variable vdem_ld19802007 "V-Dem Liberal Democracy 1980-2007"
		label variable vdem_ld19802010 "V-Dem Liberal Democracy 1980-2010"
		label variable vdem_ld1980max "V-Dem Liberal Democracy 1980-2016"
		
		label variable vdem_ld19902000 "V-Dem Liberal Democracy 1990-2000"
		label variable vdem_ld19902007 "V-Dem Liberal Democracy 1990-2007"
		label variable vdem_ld19902010 "V-Dem Liberal Democracy 1990-2010"
		label variable vdem_ld1990max "V-Dem Liberal Democracy 1990-2016"
		
		label variable vdem_ld20002010 "V-Dem Liberal Democracy 2000-2010"
		label variable vdem_ld2000max "V-Dem Liberal Democracy 2000-2016"
	}
		***V-Dem Suffrage***
	{
		label variable vdem_suff19501960 "V-Dem Suffrage 1950-1960"
		label variable vdem_suff19501970 "V-Dem Suffrage 1950-1970"
		label variable vdem_suff19501980 "V-Dem Suffrage 1950-1980"
		label variable vdem_suff19501990 "V-Dem Suffrage 1950-1990"
		label variable vdem_suff19501994 "V-Dem Suffrage 1950-1994"
		label variable vdem_suff19502000 "V-Dem Suffrage 1950-2000"
		label variable vdem_suff19502007 "V-Dem Suffrage 1950-2007"
		label variable vdem_suff19502010 "V-Dem Suffrage 1950-2010"
		label variable vdem_suff1950max "V-Dem Suffrage 1950-2016"
		
		label variable vdem_suff19601970 "V-Dem Suffrage 1960-1970"
		label variable vdem_suff19601980 "V-Dem Suffrage 1960-1980"
		label variable vdem_suff19601990 "V-Dem Suffrage 1960-1990"
		label variable vdem_suff19601994 "V-Dem Suffrage 1960-1994"
		label variable vdem_suff19602000 "V-Dem Suffrage 1960-2000"
		label variable vdem_suff19602007 "V-Dem Suffrage 1960-2007"
		label variable vdem_suff19602010 "V-Dem Suffrage 1960-2010"
		label variable vdem_suff1960max "V-Dem Suffrage 1960-2016"
		
		label variable vdem_suff19701980 "V-Dem Suffrage 1970-1980"
		label variable vdem_suff19701990 "V-Dem Suffrage 1970-1990"
		label variable vdem_suff19701994 "V-Dem Suffrage 1970-1994"
		label variable vdem_suff19702000 "V-Dem Suffrage 1970-2000"
		label variable vdem_suff19702007 "V-Dem Suffrage 1970-2007"
		label variable vdem_suff19702010 "V-Dem Suffrage 1970-2010"
		label variable vdem_suff1970max "V-Dem Suffrage 1970-2016"
		
		label variable vdem_suff19801990 "V-Dem Suffrage 1980-1990"
		label variable vdem_suff19801994 "V-Dem Suffrage 1980-1994"
		label variable vdem_suff19802000 "V-Dem Suffrage 1980-2000"
		label variable vdem_suff19802007 "V-Dem Suffrage 1980-2007"
		label variable vdem_suff19802010 "V-Dem Suffrage 1980-2010"
		label variable vdem_suff1980max "V-Dem Suffrage 1980-2016"
		
		label variable vdem_suff19902000 "V-Dem Suffrage 1990-2000"
		label variable vdem_suff19902007 "V-Dem Suffrage 1990-2007"
		label variable vdem_suff19902010 "V-Dem Suffrage 1990-2010"
		label variable vdem_suff1990max "V-Dem Suffrage 1990-2016"
		
		label variable vdem_suff20002010 "V-Dem Suffrage 2000-2010"
		label variable vdem_suff2000max "V-Dem Suffrage 2000-2016"
	}
		***V-Dem Multiplicative Polyarchy***
	{
		label variable vdem_mpi19501960 "V-Dem Multiplicative Polyarchy 1950-1960"
		label variable vdem_mpi19501970 "V-Dem Multiplicative Polyarchy 1950-1970"
		label variable vdem_mpi19501980 "V-Dem Multiplicative Polyarchy 1950-1980"
		label variable vdem_mpi19501990 "V-Dem Multiplicative Polyarchy 1950-1990"
		label variable vdem_mpi19501994 "V-Dem Multiplicative Polyarchy 1950-1994"
		label variable vdem_mpi19502000 "V-Dem Multiplicative Polyarchy 1950-2000"
		label variable vdem_mpi19502007 "V-Dem Multiplicative Polyarchy 1950-2007"
		label variable vdem_mpi19502010 "V-Dem Multiplicative Polyarchy 1950-2010"
		label variable vdem_mpi1950max "V-Dem Multiplicative Polyarchy 1950-2016"
		
		label variable vdem_mpi19601970 "V-Dem Multiplicative Polyarchy 1960-1970"
		label variable vdem_mpi19601980 "V-Dem Multiplicative Polyarchy 1960-1980"
		label variable vdem_mpi19601990 "V-Dem Multiplicative Polyarchy 1960-1990"
		label variable vdem_mpi19601994 "V-Dem Multiplicative Polyarchy 1960-1994"
		label variable vdem_mpi19602000 "V-Dem Multiplicative Polyarchy 1960-2000"
		label variable vdem_mpi19602007 "V-Dem Multiplicative Polyarchy 1960-2007"
		label variable vdem_mpi19602010 "V-Dem Multiplicative Polyarchy 1960-2010"
		label variable vdem_mpi1960max "V-Dem Multiplicative Polyarchy 1960-2016"
		
		label variable vdem_mpi19701980 "V-Dem Multiplicative Polyarchy 1970-1980"
		label variable vdem_mpi19701990 "V-Dem Multiplicative Polyarchy 1970-1990"
		label variable vdem_mpi19701994 "V-Dem Multiplicative Polyarchy 1970-1994"
		label variable vdem_mpi19702000 "V-Dem Multiplicative Polyarchy 1970-2000"
		label variable vdem_mpi19702007 "V-Dem Multiplicative Polyarchy 1970-2007"
		label variable vdem_mpi19702010 "V-Dem Multiplicative Polyarchy 1970-2010"
		label variable vdem_mpi1970max "V-Dem Multiplicative Polyarchy 1970-2016"
		
		label variable vdem_mpi19801990 "V-Dem Multiplicative Polyarchy 1980-1990"
		label variable vdem_mpi19801994 "V-Dem Multiplicative Polyarchy 1980-1994"
		label variable vdem_mpi19802000 "V-Dem Multiplicative Polyarchy 1980-2000"
		label variable vdem_mpi19802007 "V-Dem Multiplicative Polyarchy 1980-2007"
		label variable vdem_mpi19802010 "V-Dem Multiplicative Polyarchy 1980-2010"
		label variable vdem_mpi1980max "V-Dem Multiplicative Polyarchy 1980-2016"
		
		label variable vdem_mpi19902000 "V-Dem Multiplicative Polyarchy 1990-2000"
		label variable vdem_mpi19902007 "V-Dem Multiplicative Polyarchy 1990-2007"
		label variable vdem_mpi19902010 "V-Dem Multiplicative Polyarchy 1990-2010"
		label variable vdem_mpi1990max "V-Dem Multiplicative Polyarchy 1990-2016"
		
		label variable vdem_mpi20002010 "V-Dem Multiplicative Polyarchy 2000-2010"
		label variable vdem_mpi2000max "V-Dem Multiplicative Polyarchy 2000-2016"
	}
		***V-Dem Additive Polyarchy***
	{
		label variable vdem_api19501960 "V-Dem Additive Polyarchy 1950-1960"
		label variable vdem_api19501970 "V-Dem Additive Polyarchy 1950-1970"
		label variable vdem_api19501980 "V-Dem Additive Polyarchy 1950-1980"
		label variable vdem_api19501990 "V-Dem Additive Polyarchy 1950-1990"
		label variable vdem_api19501994 "V-Dem Additive Polyarchy 1950-1994"
		label variable vdem_api19502000 "V-Dem Additive Polyarchy 1950-2000"
		label variable vdem_api19502007 "V-Dem Additive Polyarchy 1950-2007"
		label variable vdem_api19502010 "V-Dem Additive Polyarchy 1950-2010"
		label variable vdem_api1950max "V-Dem Additive Polyarchy 1950-2016"
		
		label variable vdem_api19601970 "V-Dem Additive Polyarchy 1960-1970"
		label variable vdem_api19601980 "V-Dem Additive Polyarchy 1960-1980"
		label variable vdem_api19601990 "V-Dem Additive Polyarchy 1960-1990"
		label variable vdem_api19601994 "V-Dem Additive Polyarchy 1960-1994"
		label variable vdem_api19602000 "V-Dem Additive Polyarchy 1960-2000"
		label variable vdem_api19602007 "V-Dem Additive Polyarchy 1960-2007"
		label variable vdem_api19602010 "V-Dem Additive Polyarchy 1960-2010"
		label variable vdem_api1960max "V-Dem Additive Polyarchy 1960-2016"
		
		label variable vdem_api19701980 "V-Dem Additive Polyarchy 1970-1980"
		label variable vdem_api19701990 "V-Dem Additive Polyarchy 1970-1990"
		label variable vdem_api19701994 "V-Dem Additive Polyarchy 1970-1994"
		label variable vdem_api19702000 "V-Dem Additive Polyarchy 1970-2000"
		label variable vdem_api19702007 "V-Dem Additive Polyarchy 1970-2007"
		label variable vdem_api19702010 "V-Dem Additive Polyarchy 1970-2010"
		label variable vdem_api1970max "V-Dem Additive Polyarchy 1970-2016"
		
		label variable vdem_api19801990 "V-Dem Additive Polyarchy 1980-1990"
		label variable vdem_api19801994 "V-Dem Additive Polyarchy 1980-1994"
		label variable vdem_api19802000 "V-Dem Additive Polyarchy 1980-2000"
		label variable vdem_api19802007 "V-Dem Additive Polyarchy 1980-2007"
		label variable vdem_api19802010 "V-Dem Additive Polyarchy 1980-2010"
		label variable vdem_api1980max "V-Dem Additive Polyarchy 1980-2016"
		
		label variable vdem_api19902000 "V-Dem Additive Polyarchy 1990-2000"
		label variable vdem_api19902007 "V-Dem Additive Polyarchy 1990-2007"
		label variable vdem_api19902010 "V-Dem Additive Polyarchy 1990-2010"
		label variable vdem_api1990max "V-Dem Additive Polyarchy 1990-2016"
		
		label variable vdem_api20002010 "V-Dem Additive Polyarchy 2000-2010"
		label variable vdem_api2000max "V-Dem Additive Polyarchy 2000-2016"
	}
		
		***Svolik***
	{
		label variable svolik19501960 "Svolik 1950-1960"
		label variable svolik19501970 "Svolik 1950-1970"
		label variable svolik19501980 "Svolik 1950-1980"
		label variable svolik19501990 "Svolik 1950-1990"
		label variable svolik19501994 "Svolik 1950-1994"
		label variable svolik19502000 "Svolik 1950-2000"
		label variable svolik19502007 "Svolik 1950-2007"
		label variable svolik1950max "Svolik 1950-2008"
		
		label variable svolik19601970 "Svolik 1960-1970"
		label variable svolik19601980 "Svolik 1960-1980"
		label variable svolik19601990 "Svolik 1960-1990"
		label variable svolik19601994 "Svolik 1960-1994"
		label variable svolik19602000 "Svolik 1960-2000"
		label variable svolik19602007 "Svolik 1960-2007"
		label variable svolik1960max "Svolik 1960-2008"
		
		label variable svolik19701980 "Svolik 1970-1980"
		label variable svolik19701990 "Svolik 1970-1990"
		label variable svolik19701994 "Svolik 1970-1994"
		label variable svolik19702000 "Svolik 1970-2000"
		label variable svolik19702007 "Svolik 1970-2007"
		label variable svolik1970max "Svolik 1970-2008"
		
		label variable svolik19801990 "Svolik 1980-1990"
		label variable svolik19801994 "Svolik 1980-1994"
		label variable svolik19802000 "Svolik 1980-2000"
		label variable svolik19802007 "Svolik 1980-2007"
		label variable svolik1980max "Svolik 1980-2008"
		
		label variable svolik19902000 "Svolik 1990-2000"
		label variable svolik19902007 "Svolik 1990-2007"
		label variable svolik1990max "Svolik 1990-2008"

	}
		***Geddes-Wright-Frantz***
	{
		label variable gwf19501960 "Geddes-Wright-Frantz 1950-1960"
		label variable gwf19501970 "Geddes-Wright-Frantz 1950-1970"
		label variable gwf19501980 "Geddes-Wright-Frantz 1950-1980"
		label variable gwf19501990 "Geddes-Wright-Frantz 1950-1990"
		label variable gwf19501994 "Geddes-Wright-Frantz 1950-1994"
		label variable gwf19502000 "Geddes-Wright-Frantz 1950-2000"
		label variable gwf19502007 "Geddes-Wright-Frantz 1950-2007"
		label variable gwf19502010 "Geddes-Wright-Frantz 1950-2010"
		
		label variable gwf19601970 "Geddes-Wright-Frantz 1960-1970"
		label variable gwf19601980 "Geddes-Wright-Frantz 1960-1980"
		label variable gwf19601990 "Geddes-Wright-Frantz 1960-1990"
		label variable gwf19601994 "Geddes-Wright-Frantz 1960-1994"
		label variable gwf19602000 "Geddes-Wright-Frantz 1960-2000"
		label variable gwf19602007 "Geddes-Wright-Frantz 1960-2007"
		label variable gwf19602010 "Geddes-Wright-Frantz 1960-2010"
		
		label variable gwf19701980 "Geddes-Wright-Frantz 1970-1980"
		label variable gwf19701990 "Geddes-Wright-Frantz 1970-1990"
		label variable gwf19701994 "Geddes-Wright-Frantz 1970-1994"
		label variable gwf19702000 "Geddes-Wright-Frantz 1970-2000"
		label variable gwf19702007 "Geddes-Wright-Frantz 1970-2007"
		label variable gwf19702010 "Geddes-Wright-Frantz 1970-2010"
		
		label variable gwf19801990 "Geddes-Wright-Frantz 1980-1990"
		label variable gwf19801994 "Geddes-Wright-Frantz 1980-1994"
		label variable gwf19802000 "Geddes-Wright-Frantz 1980-2000"
		label variable gwf19802007 "Geddes-Wright-Frantz 1980-2007"
		label variable gwf19802010 "Geddes-Wright-Frantz 1980-2010"
		
		label variable gwf19902000 "Geddes-Wright-Frantz 1990-2000"
		label variable gwf19902007 "Geddes-Wright-Frantz 1990-2007"
		label variable gwf19902010 "Geddes-Wright-Frantz 1990-2010"
		
		label variable gwf20002010 "Geddes-Wright-Frantz 2000-2010"
	}
		***Cheibub***
	{
		label variable cheibub19501960 "Cheibub 1950-1960"
		label variable cheibub19501970 "Cheibub 1950-1970"
		label variable cheibub19501980 "Cheibub 1950-1980"
		label variable cheibub19501990 "Cheibub 1950-1990"
		label variable cheibub19501994 "Cheibub 1950-1994"
		label variable cheibub19502000 "Cheibub 1950-2000"
		label variable cheibub19502007 "Cheibub 1950-2007"
		label variable cheibub1950max "Cheibub 1950-2008"
		
		label variable cheibub19601970 "Cheibub 1960-1970"
		label variable cheibub19601980 "Cheibub 1960-1980"
		label variable cheibub19601990 "Cheibub 1960-1990"
		label variable cheibub19601994 "Cheibub 1960-1994"
		label variable cheibub19602000 "Cheibub 1960-2000"
		label variable cheibub19602007 "Cheibub 1960-2007"
		label variable cheibub1960max "Cheibub 1960-2008"
		
		label variable cheibub19701980 "Cheibub 1970-1980"
		label variable cheibub19701990 "Cheibub 1970-1990"
		label variable cheibub19701994 "Cheibub 1970-1994"
		label variable cheibub19702000 "Cheibub 1970-2000"
		label variable cheibub19702007 "Cheibub 1970-2007"
		label variable cheibub1970max "Cheibub 1970-2008"
		
		label variable cheibub19801990 "Cheibub 1980-1990"
		label variable cheibub19801994 "Cheibub 1980-1994"
		label variable cheibub19802000 "Cheibub 1980-2000"
		label variable cheibub19802007 "Cheibub 1980-2007"
		label variable cheibub1980max "Cheibub 1980-2008"
		
		label variable cheibub19902000 "Cheibub 1990-2000"
		label variable cheibub19902007 "Cheibub 1990-2007"
		label variable cheibub1990max "Cheibub 1990-2008"
	}
		***SVMDI 2016***
	{
		label variable svmdi_201619811994 "SVMDI 2016 1981-1994"
		label variable svmdi_201619812000 "SVMDI 2016 1981-2000"
		label variable svmdi_201619812007 "SVMDI 2016 1981-2007"
		label variable svmdi_201619812010 "SVMDI 2016 1981-2010"
		label variable svmdi_20161981max "SVMDI 2016 1981-2011"
		
		label variable svmdi_201619902000 "SVMDI 2016 1990-2000"
		label variable svmdi_201619902007 "SVMDI 2016 1990-2007"
		label variable svmdi_201619902010 "SVMDI 2016 1990-2010"
		label variable svmdi_20161990max "SVMDI 2016 1990-2011"
		
		label variable svmdi_201620002010 "SVMDI 2016 2000-2010"
		label variable svmdi_20162000max "SVMDI 2016 2000-2011"
		}
		***SVMDI 2018***
	{
		label variable svmdi_201819501960 "SVMDI 2018 1950-1960"
		label variable svmdi_201819501970 "SVMDI 2018 1950-1970"
		label variable svmdi_201819501980 "SVMDI 2018 1950-1980"
		label variable svmdi_201819501990 "SVMDI 2018 1950-1990"
		label variable svmdi_201819501994 "SVMDI 2018 1950-1994"
		label variable svmdi_201819502000 "SVMDI 2018 1950-2000"
		label variable svmdi_201819502007 "SVMDI 2018 1950-2007"
		label variable svmdi_201819502010 "SVMDI 2018 1950-2010"
		label variable svmdi_20181950max "SVMDI 2018 1950-2016"
		
		label variable svmdi_201819601970 "SVMDI 2018 1960-1970"
		label variable svmdi_201819601980 "SVMDI 2018 1960-1980"
		label variable svmdi_201819601990 "SVMDI 2018 1960-1990"
		label variable svmdi_201819601994 "SVMDI 2018 1960-1994"
		label variable svmdi_201819602000 "SVMDI 2018 1960-2000"
		label variable svmdi_201819602007 "SVMDI 2018 1960-2007"
		label variable svmdi_201819602010 "SVMDI 2018 1960-2010"
		label variable svmdi_20181960max "SVMDI 2018 1960-2016"
		
		label variable svmdi_201819701980 "SVMDI 2018 1970-1980"
		label variable svmdi_201819701990 "SVMDI 2018 1970-1990"
		label variable svmdi_201819701994 "SVMDI 2018 1970-1994"
		label variable svmdi_201819702000 "SVMDI 2018 1970-2000"
		label variable svmdi_201819702007 "SVMDI 2018 1970-2007"
		label variable svmdi_201819702010 "SVMDI 2018 1970-2010"
		label variable svmdi_20181970max "SVMDI 2018 1970-2016"
		
		label variable svmdi_201819801990 "SVMDI 2018 1980-1990"
		label variable svmdi_201819801994 "SVMDI 2018 1980-1994"
		label variable svmdi_201819802000 "SVMDI 2018 1980-2000"
		label variable svmdi_201819802007 "SVMDI 2018 1980-2007"
		label variable svmdi_201819802010 "SVMDI 2018 1980-2010"
		label variable svmdi_20181980max "SVMDI 2018 1980-2016"
		
		label variable svmdi_201819902000 "SVMDI 2018 1990-2000"
		label variable svmdi_201819902007 "SVMDI 2018 1990-2007"
		label variable svmdi_201819902010 "SVMDI 2018 1990-2010"
		label variable svmdi_20181990max "SVMDI 2018 1990-2016"
		
		label variable svmdi_201820002010 "SVMDI 2018 2000-2010"
		label variable svmdi_20182000max "SVMDI 2018 2000-2016"
	}
		***Kailitz***
	{
		label variable kailitz19501960 "Kailitz 1950-1960"
		label variable kailitz19501970 "Kailitz 1950-1970"
		label variable kailitz19501980 "Kailitz 1950-1980"
		label variable kailitz19501990 "Kailitz 1950-1990"
		label variable kailitz19501994 "Kailitz 1950-1994"
		label variable kailitz19502000 "Kailitz 1950-2000"
		label variable kailitz19502007 "Kailitz 1950-2007"
		label variable kailitz19502010 "Kailitz 1950-2010"
		
		label variable kailitz19601970 "Kailitz 1960-1970"
		label variable kailitz19601980 "Kailitz 1960-1980"
		label variable kailitz19601990 "Kailitz 1960-1990"
		label variable kailitz19601994 "Kailitz 1960-1994"
		label variable kailitz19602000 "Kailitz 1960-2000"
		label variable kailitz19602007 "Kailitz 1960-2007"
		label variable kailitz19602010 "Kailitz 1960-2010"
		
		label variable kailitz19701980 "Kailitz 1970-1980"
		label variable kailitz19701990 "Kailitz 1970-1990"
		label variable kailitz19701994 "Kailitz 1970-1994"
		label variable kailitz19702000 "Kailitz 1970-2000"
		label variable kailitz19702007 "Kailitz 1970-2007"
		label variable kailitz19702010 "Kailitz 1970-2010"
		
		label variable kailitz19801990 "Kailitz 1980-1990"
		label variable kailitz19801994 "Kailitz 1980-1994"
		label variable kailitz19802000 "Kailitz 1980-2000"
		label variable kailitz19802007 "Kailitz 1980-2007"
		label variable kailitz19802010 "Kailitz 1980-2010"
		
		label variable kailitz19902000 "Kailitz 1990-2000"
		label variable kailitz19902007 "Kailitz 1990-2007"
		label variable kailitz19902010 "Kailitz 1990-2010"
		
		label variable kailitz20002010 "Kailitz 2000-2010"
	}
		***Coppedge Inclusiveness***
	{
		label variable coppedge_i19501960 "Coppedge Inclusiveness 1950-1960"
		label variable coppedge_i19501970 "Coppedge Inclusiveness 1950-1970"
		label variable coppedge_i19501980 "Coppedge Inclusiveness 1950-1980"
		label variable coppedge_i19501990 "Coppedge Inclusiveness 1950-1990"
		label variable coppedge_i19501994 "Coppedge Inclusiveness 1950-1994"
		label variable coppedge_i19502000 "Coppedge Inclusiveness 1950-2000"
		
		label variable coppedge_i19601970 "Coppedge Inclusiveness 1960-1970"
		label variable coppedge_i19601980 "Coppedge Inclusiveness 1960-1980"
		label variable coppedge_i19601990 "Coppedge Inclusiveness 1960-1990"
		label variable coppedge_i19601994 "Coppedge Inclusiveness 1960-1994"
		label variable coppedge_i19602000 "Coppedge Inclusiveness 1960-2000"
		
		label variable coppedge_i19701980 "Coppedge Inclusiveness 1970-1980"
		label variable coppedge_i19701990 "Coppedge Inclusiveness 1970-1990"
		label variable coppedge_i19701994 "Coppedge Inclusiveness 1970-1994"
		label variable coppedge_i19702000 "Coppedge Inclusiveness 1970-2000"
		
		label variable coppedge_i19801990 "Coppedge Inclusiveness 1980-1990"
		label variable coppedge_i19801994 "Coppedge Inclusiveness 1980-1994"
		label variable coppedge_i19802000 "Coppedge Inclusiveness 1980-2000"
		
		label variable coppedge_i19902000 "Coppedge Inclusiveness 1990-2000"
	}
		***Coppedge Contestation***
	{
		label variable coppedge_c19501960 "Coppedge Contestation 1950-1960"
		label variable coppedge_c19501970 "Coppedge Contestation 1950-1970"
		label variable coppedge_c19501980 "Coppedge Contestation 1950-1980"
		label variable coppedge_c19501990 "Coppedge Contestation 1950-1990"
		label variable coppedge_c19501994 "Coppedge Contestation 1950-1994"
		label variable coppedge_c19502000 "Coppedge Contestation 1950-2000"
		
		label variable coppedge_c19601970 "Coppedge Contestation 1960-1970"
		label variable coppedge_c19601980 "Coppedge Contestation 1960-1980"
		label variable coppedge_c19601990 "Coppedge Contestation 1960-1990"
		label variable coppedge_c19601994 "Coppedge Contestation 1960-1994"
		label variable coppedge_c19602000 "Coppedge Contestation 1960-2000"
		
		label variable coppedge_c19701980 "Coppedge Contestation 1970-1980"
		label variable coppedge_c19701990 "Coppedge Contestation 1970-1990"
		label variable coppedge_c19701994 "Coppedge Contestation 1970-1994"
		label variable coppedge_c19702000 "Coppedge Contestation 1970-2000"
		
		label variable coppedge_c19801990 "Coppedge Contestation 1980-1990"
		label variable coppedge_c19801994 "Coppedge Contestation 1980-1994"
		label variable coppedge_c19802000 "Coppedge Contestation 1980-2000"
		
		label variable coppedge_c19902000 "Coppedge Contestation 1990-2000"
	}
		***Unified Democracy Score 2010***
	{
		label variable uds_201019501960 "Unified Democracy Score 2010 1950-1960"
		label variable uds_201019501970 "Unified Democracy Score 2010 1950-1970"
		label variable uds_201019501980 "Unified Democracy Score 2010 1950-1980"
		label variable uds_201019501990 "Unified Democracy Score 2010 1950-1990"
		label variable uds_201019501994 "Unified Democracy Score 2010 1950-1994"
		label variable uds_201019502000 "Unified Democracy Score 2010 1950-2000"
		
		label variable uds_201019601970 "Unified Democracy Score 2010 1960-1970"
		label variable uds_201019601980 "Unified Democracy Score 2010 1960-1980"
		label variable uds_201019601990 "Unified Democracy Score 2010 1960-1990"
		label variable uds_201019601994 "Unified Democracy Score 2010 1960-1994"
		label variable uds_201019602000 "Unified Democracy Score 2010 1960-2000"
		
		label variable uds_201019701980 "Unified Democracy Score 2010 1970-1980"
		label variable uds_201019701990 "Unified Democracy Score 2010 1970-1990"
		label variable uds_201019701994 "Unified Democracy Score 2010 1970-1994"
		label variable uds_201019702000 "Unified Democracy Score 2010 1970-2000"
		
		label variable uds_201019801990 "Unified Democracy Score 2010 1980-1990"
		label variable uds_201019801994 "Unified Democracy Score 2010 1980-1994"
		label variable uds_201019802000 "Unified Democracy Score 2010 1980-2000"
		
		label variable uds_201019902000 "Unified Democracy Score 2010 1990-2000"
	}
		***Unified Democracy Score 2011***
	{
		label variable uds_201119501960 "Unified Democracy Score 2011 1950-1960"
		label variable uds_201119501970 "Unified Democracy Score 2011 1950-1970"
		label variable uds_201119501980 "Unified Democracy Score 2011 1950-1980"
		label variable uds_201119501990 "Unified Democracy Score 2011 1950-1990"
		label variable uds_201119501994 "Unified Democracy Score 2011 1950-1994"
		label variable uds_201119502000 "Unified Democracy Score 2011 1950-2000"
		label variable uds_201119502007 "Unified Democracy Score 2011 1950-2007"
		label variable uds_201119502010 "Unified Democracy Score 2011 1950-2010"
		label variable uds_20111950max "Unified Democracy Score 2011 1950-2011"
		
		label variable uds_201119601970 "Unified Democracy Score 2011 1960-1970"
		label variable uds_201119601980 "Unified Democracy Score 2011 1960-1980"
		label variable uds_201119601990 "Unified Democracy Score 2011 1960-1990"
		label variable uds_201119601994 "Unified Democracy Score 2011 1960-1994"
		label variable uds_201119602000 "Unified Democracy Score 2011 1960-2000"
		label variable uds_201119602007 "Unified Democracy Score 2011 1960-2007"
		label variable uds_201119602010 "Unified Democracy Score 2011 1960-2010"
		label variable uds_20111960max "Unified Democracy Score 2011 1960-2011"
		
		label variable uds_201119701980 "Unified Democracy Score 2011 1970-1980"
		label variable uds_201119701990 "Unified Democracy Score 2011 1970-1990"
		label variable uds_201119701994 "Unified Democracy Score 2011 1970-1994"
		label variable uds_201119702000 "Unified Democracy Score 2011 1970-2000"
		label variable uds_201119702007 "Unified Democracy Score 2011 1970-2007"
		label variable uds_201119702010 "Unified Democracy Score 2011 1970-2010"
		label variable uds_20111970max "Unified Democracy Score 2011 1970-2011"
		
		label variable uds_201119801990 "Unified Democracy Score 2011 1980-1990"
		label variable uds_201119801994 "Unified Democracy Score 2011 1980-1994"
		label variable uds_201119802000 "Unified Democracy Score 2011 1980-2000"
		label variable uds_201119802007 "Unified Democracy Score 2011 1980-2007"
		label variable uds_201119802010 "Unified Democracy Score 2011 1980-2010"
		label variable uds_20111980max "Unified Democracy Score 2011 1980-2011"
		
		label variable uds_201119902000 "Unified Democracy Score 2011 1990-2000"
		label variable uds_201119902007 "Unified Democracy Score 2011 1990-2007"
		label variable uds_201119902010 "Unified Democracy Score 2011 1990-2010"
		label variable uds_20111990max"Unified Democracy Score 2011 1990-2011"
		
		label variable uds_201120002010 "Unified Democracy Score 2011 2000-2010"
		label variable uds_20112000max "Unified Democracy Score 2011 2000-2011"
	}
		***Unified Democracy Score 2014***
	{
		label variable uds_201419501960 "Unified Democracy Score 2014 1950-1960"
		label variable uds_201419501970 "Unified Democracy Score 2014 1950-1970"
		label variable uds_201419501980 "Unified Democracy Score 2014 1950-1980"
		label variable uds_201419501990 "Unified Democracy Score 2014 1950-1990"
		label variable uds_201419501994 "Unified Democracy Score 2014 1950-1994"
		label variable uds_201419502000 "Unified Democracy Score 2014 1950-2000"
		label variable uds_201419502007 "Unified Democracy Score 2014 1950-2007"
		label variable uds_201419502010 "Unified Democracy Score 2014 1950-2010"
		label variable uds_20141950max "Unified Democracy Score 2014 1950-2012"
		
		label variable uds_201419601970 "Unified Democracy Score 2014 1960-1970"
		label variable uds_201419601980 "Unified Democracy Score 2014 1960-1980"
		label variable uds_201419601990 "Unified Democracy Score 2014 1960-1990"
		label variable uds_201419601994 "Unified Democracy Score 2014 1960-1994"
		label variable uds_201419602000 "Unified Democracy Score 2014 1960-2000"
		label variable uds_201419602007 "Unified Democracy Score 2014 1960-2007"
		label variable uds_201419602010 "Unified Democracy Score 2014 1960-2010"
		label variable uds_20141960max "Unified Democracy Score 2014 1960-2012"
		
		label variable uds_201419701980 "Unified Democracy Score 2014 1970-1980"
		label variable uds_201419701990 "Unified Democracy Score 2014 1970-1990"
		label variable uds_201419701994 "Unified Democracy Score 2014 1970-1994"
		label variable uds_201419702000 "Unified Democracy Score 2014 1970-2000"
		label variable uds_201419702007 "Unified Democracy Score 2014 1970-2007"
		label variable uds_201419702010 "Unified Democracy Score 2014 1970-2010"
		label variable uds_20141970max "Unified Democracy Score 2014 1970-2012"
		
		label variable uds_201419801990 "Unified Democracy Score 2014 1980-1990"
		label variable uds_201419801994 "Unified Democracy Score 2014 1980-1994"
		label variable uds_201419802000 "Unified Democracy Score 2014 1980-2000"
		label variable uds_201419802007 "Unified Democracy Score 2014 1980-2007"
		label variable uds_201419802010 "Unified Democracy Score 2014 1980-2010"
		label variable uds_20141980max "Unified Democracy Score 2014 1980-2012"
		
		label variable uds_201419902000 "Unified Democracy Score 2014 1990-2000"
		label variable uds_201419902007 "Unified Democracy Score 2014 1990-2007"
		label variable uds_201419902010 "Unified Democracy Score 2014 1990-2010"
		label variable uds_20141990max "Unified Democracy Score 2014 1990-2012"
		
		label variable uds_201420002010 "Unified Democracy Score 2014 2000-2010"
		label variable uds_20142000max "Unified Democracy Score 2014 2000-2012"
	}
		***Bollen***
	{
		label variable bollen19501960 "Bollen 1950-1960"
		label variable bollen19501970 "Bollen 1950-1970"
		label variable bollen19501980 "Bollen 1950-1980"
		
		label variable bollen19601970 "Bollen 1960-1970"
		label variable bollen19601980 "Bollen 1960-1980"
	}
		***Paxton***
	{
		label variable paxton19501960 "Paxton 1950-1960"
		label variable paxton19501970 "Paxton 1950-1970"
		label variable paxton19501980 "Paxton 1950-1980"
		label variable paxton19501990 "Paxton 1950-1990"
		label variable paxton19501994 "Paxton 1950-1994"
		label variable paxton19502000 "Paxton 1950-2000"
		
		label variable paxton19601970 "Paxton 1960-1970"
		label variable paxton19601980 "Paxton 1960-1980"
		label variable paxton19601990 "Paxton 1960-1990"
		label variable paxton19601994 "Paxton 1960-1994"
		label variable paxton19602000 "Paxton 1960-2000"
		
		label variable paxton19701980 "Paxton 1970-1980"
		label variable paxton19701990 "Paxton 1970-1990"
		label variable paxton19701994 "Paxton 1970-1994"
		label variable paxton19702000 "Paxton 1970-2000"
		
		label variable paxton19801990 "Paxton 1980-1990"
		label variable paxton19801994 "Paxton 1980-1994"
		label variable paxton19802000 "Paxton 1980-2000"
		
		label variable paxton19902000 "Paxton 1990-2000"
		
		label variable vanhanen_c19501960 "Vanhanen Competition 1950-1960"
		label variable vanhanen_c19501970 "Vanhanen Competition 1950-1970"
		label variable vanhanen_c19501980 "Vanhanen Competition 1950-1980"
		label variable vanhanen_c19501990 "Vanhanen Competition 1950-1990"
		label variable vanhanen_c19501994 "Vanhanen Competition 1950-1994"
		label variable vanhanen_c19502000 "Vanhanen Competition 1950-2000"
		label variable vanhanen_c19502007 "Vanhanen Competition 1950-2007"
		label variable vanhanen_c19502010 "Vanhanen Competition 1950-2010"
		label variable vanhanen_c1950max "Vanhanen Competition 1950-2012"
		
		label variable vanhanen_c19601970 "Vanhanen Competition 1960-1970"
		label variable vanhanen_c19601980 "Vanhanen Competition 1960-1980"
		label variable vanhanen_c19601990 "Vanhanen Competition 1960-1990"
		label variable vanhanen_c19601994 "Vanhanen Competition 1960-1994"
		label variable vanhanen_c19602000 "Vanhanen Competition 1960-2000"
		label variable vanhanen_c19602007 "Vanhanen Competition 1960-2007"
		label variable vanhanen_c19602010 "Vanhanen Competition 1960-2010"
		label variable vanhanen_c1960max "Vanhanen Competition 1960-2012"
		
		label variable vanhanen_c19701980 "Vanhanen Competition 1970-1980"
		label variable vanhanen_c19701990 "Vanhanen Competition 1970-1990"
		label variable vanhanen_c19701994 "Vanhanen Competition 1970-1994"
		label variable vanhanen_c19702000 "Vanhanen Competition 1970-2000"
		label variable vanhanen_c19702007 "Vanhanen Competition 1970-2007"
		label variable vanhanen_c19702010 "Vanhanen Competition 1970-2010"
		label variable vanhanen_c1970max "Vanhanen Competition 1970-2012"
		
		label variable vanhanen_c19801990 "Vanhanen Competition 1980-1990"
		label variable vanhanen_c19801994 "Vanhanen Competition 1980-1994"
		label variable vanhanen_c19802000 "Vanhanen Competition 1980-2000"
		label variable vanhanen_c19802007 "Vanhanen Competition 1980-2007"
		label variable vanhanen_c19802010 "Vanhanen Competition 1980-2010"
		label variable vanhanen_c1980max "Vanhanen Competition 1980-2012"
		
		label variable vanhanen_c19902000 "Vanhanen Competition 1990-2000"
		label variable vanhanen_c19902007 "Vanhanen Competition 1990-2007"
		label variable vanhanen_c19902010 "Vanhanen Competition 1990-2010"
		label variable vanhanen_c1990max "Vanhanen Competition 1990-2012"
		
		label variable vanhanen_c20002010 "Vanhanen Competition 2000-2010"
		label variable vanhanen_c2000max "Vanhanen Competition 2000-2012"

		label variable vanhanen_d19501960 "Vanhanen Democratization 1950-1960"
		label variable vanhanen_d19501970 "Vanhanen Democratization 1950-1970"
		label variable vanhanen_d19501980 "Vanhanen Democratization 1950-1980"
		label variable vanhanen_d19501990 "Vanhanen Democratization 1950-1990"
		label variable vanhanen_d19501994 "Vanhanen Democratization 1950-1994"
		label variable vanhanen_d19502000 "Vanhanen Democratization 1950-2000"
		label variable vanhanen_d19502007 "Vanhanen Democratization 1950-2007"
		label variable vanhanen_d19502010 "Vanhanen Democratization 1950-2010"
		label variable vanhanen_d1950max "Vanhanen Democratization 1950-2012"
		
		label variable vanhanen_d19601970 "Vanhanen Democratization 1960-1970"
		label variable vanhanen_d19601980 "Vanhanen Democratization 1960-1980"
		label variable vanhanen_d19601990 "Vanhanen Democratization 1960-1990"
		label variable vanhanen_d19601994 "Vanhanen Democratization 1960-1994"
		label variable vanhanen_d19602000 "Vanhanen Democratization 1960-2000"
		label variable vanhanen_d19602007 "Vanhanen Democratization 1960-2007"
		label variable vanhanen_d19602010 "Vanhanen Democratization 1960-2010"
		label variable vanhanen_d1960max "Vanhanen Democratization 1960-2012"
		
		label variable vanhanen_d19701980 "Vanhanen Democratization 1970-1980"
		label variable vanhanen_d19701990 "Vanhanen Democratization 1970-1990"
		label variable vanhanen_d19701994 "Vanhanen Democratization 1970-1994"
		label variable vanhanen_d19702000 "Vanhanen Democratization 1970-2000"
		label variable vanhanen_d19702007 "Vanhanen Democratization 1970-2007"
		label variable vanhanen_d19702010 "Vanhanen Democratization 1970-2010"
		label variable vanhanen_d1970max "Vanhanen Democratization 1970-2012"
		
		label variable vanhanen_d19801990 "Vanhanen Democratization 1980-1990"
		label variable vanhanen_d19801994 "Vanhanen Democratization 1980-1994"
		label variable vanhanen_d19802000 "Vanhanen Democratization 1980-2000"
		label variable vanhanen_d19802007 "Vanhanen Democratization 1980-2007"
		label variable vanhanen_d19802010 "Vanhanen Democratization 1980-2010"
		label variable vanhanen_d1980max "Vanhanen Democratization 1980-2012"
		
		label variable vanhanen_d19902000 "Vanhanen Democratization 1990-2000"
		label variable vanhanen_d19902007 "Vanhanen Democratization 1990-2007"
		label variable vanhanen_d19902010 "Vanhanen Democratization 1990-2010"
		label variable vanhanen_d1990max "Vanhanen Democratization 1990-2012"
		
		label variable vanhanen_d20002010 "Vanhanen Democratization 2000-2010"
		label variable vanhanen_d2000max "Vanhanen Democratization 2000-2012"
	}
	save, replace
}

***SUMMARY STATISTICS AND CORRELATION COEFFICIENTS***
{
	use "master.dta"

		sum bmr_omitted1950max bmr1950max bollen19501980 cheibub1950max coppedge_c19502000 coppedge_i19502000 fh_cl1972max fh_mean1972max fh_pr1972max gwf19502010 kailitz19502010 paxton19502000 polity1950max svmdi_20161981max svmdi_20181950max svolik1950max uds_201019502000 uds_20111950max uds_20141950max vanhanen_c1950max vanhanen_d1950max vdem_api1950max vdem_ed1950max vdem_ld1950max vdem_mpi1950max vdem_suff1950max 
		corr Ldem5094 bmr_omitted1950max bmr1950max bollen19501980 cheibub1950max coppedge_c19502000 coppedge_i19502000 fh_cl1972max fh_mean1972max fh_pr1972max gwf19502010 kailitz19502010 paxton19502000 polity1950max svmdi_20161981max svmdi_20181950max svolik1950max uds_201019502000 uds_20111950max uds_20141950max vanhanen_c1950max vanhanen_d1950max vdem_api1950max vdem_ed1950max vdem_ld1950max vdem_mpi1950max vdem_suff1950max 

	save, replace
}

***REGRESSIONS***
{
	use "master.dta"
	
		/*ALL BUT BMA*/
		foreach x in polity19501960 polity19501970 polity19501980 polity19501990 polity19501994 polity19502000 polity19502007 polity19502010 polity1950max polity19601970 polity19601980 polity19601990 polity19601994 polity19602000 polity19602007 polity19602010 polity1960max polity19701980 polity19701990 polity19701994 polity19702000 polity19702007 polity19702010 polity1970max polity19801990 polity19801994 polity19802000 polity19802007 polity19802010 polity1980max polity19902000 polity19902007 polity19902010 polity1990max polity20002010 polity2000max bmr19501960 bmr19501970 bmr19501980 bmr19501990 bmr19501994 bmr19502000 bmr19502007 bmr19502010 bmr1950max bmr19601970 bmr19601980 bmr19601990 bmr19601994 bmr19602000 bmr19602007 bmr19602010 bmr1960max bmr19701980 bmr19701990 bmr19701994 bmr19702000 bmr19702007 bmr19702010 bmr1970max bmr19801990 bmr19801994 bmr19802000 bmr19802007 bmr19802010 bmr1980max bmr19902000 bmr19902007 bmr19902010 bmr1990max bmr20002010 bmr2000max bmr_omitted19501960 bmr_omitted19501970 bmr_omitted19501980 bmr_omitted19501990 bmr_omitted19501994 bmr_omitted19502000 bmr_omitted19502007 bmr_omitted19502010 bmr_omitted1950max bmr_omitted19601970 bmr_omitted19601980 bmr_omitted19601990 bmr_omitted19601994 bmr_omitted19602000 bmr_omitted19602007 bmr_omitted19602010 bmr_omitted1960max bmr_omitted19701980 bmr_omitted19701990 bmr_omitted19701994 bmr_omitted19702000 bmr_omitted19702007 bmr_omitted1970max bmr_omitted19801990 bmr_omitted19801994 bmr_omitted19802000 bmr_omitted19802007 bmr_omitted19802010 bmr_omitted1980max bmr_omitted19902000 bmr_omitted19902007 bmr_omitted19902010 bmr_omitted1990max bmr_omitted20002010 bmr_omitted2000max fh_cl19721990 fh_cl19721994 fh_cl19722000 fh_cl19722007 fh_cl19722010 fh_cl1972max fh_cl19801990 fh_cl19801994 fh_cl19802000 fh_cl19802007 fh_cl19802010 fh_cl1980max fh_cl19902000 fh_cl19902007 fh_cl19902010 fh_cl1990max fh_cl20002010 fh_cl2000max fh_pr19721990 fh_pr19721994 fh_pr19722000 fh_pr19722007 fh_pr19722010 fh_pr1972max fh_pr19801990 fh_pr19801994 fh_pr19802000 fh_pr19802007 fh_pr19802010 fh_pr1980max fh_pr19902000 fh_pr19902007 fh_pr19902010 fh_pr1990max fh_pr20002010 fh_pr2000max fh_mean19721990 fh_mean19721994 fh_mean19722000 fh_mean19722007 fh_mean19722010 fh_mean1972max fh_mean19801990 fh_mean19801994 fh_mean19802000 fh_mean19802007 fh_mean19802010 fh_mean1980max fh_mean19902000 fh_mean19902007 fh_mean19902010 fh_mean1990max fh_mean20002010 fh_mean2000max vdem_ed19501960 vdem_ed19501970 vdem_ed19501980 vdem_ed19501990 vdem_ed19501994 vdem_ed19502000 vdem_ed19502007 vdem_ed19502010 vdem_ed1950max vdem_ed19601970 vdem_ed19601980 vdem_ed19601990 vdem_ed19601994 vdem_ed19602000 vdem_ed19602007 vdem_ed19602010 vdem_ed1960max vdem_ed19701980 vdem_ed19701990 vdem_ed19701994 vdem_ed19702000 vdem_ed19702007 vdem_ed19702010 vdem_ed1970max vdem_ed19801990 vdem_ed19801994 vdem_ed19802000 vdem_ed19802007 vdem_ed19802010 vdem_ed1980max vdem_ed19902000 vdem_ed19902007 vdem_ed19902010 vdem_ed1990max vdem_ed20002010 vdem_ed2000max vdem_ld19501960 vdem_ld19501970 vdem_ld19501980 vdem_ld19501990 vdem_ld19501994 vdem_ld19502000 vdem_ld19502007 vdem_ld19502010 vdem_ld1950max vdem_ld19601970 vdem_ld19601980 vdem_ld19601990 vdem_ld19601994 vdem_ld19602000 vdem_ld19602007 vdem_ld19602010 vdem_ld1960max vdem_ld19701980 vdem_ld19701990 vdem_ld19701994 vdem_ld19702000 vdem_ld19702007 vdem_ld19702010 vdem_ld1970max vdem_ld19801990 vdem_ld19801994 vdem_ld19802000 vdem_ld19802007 vdem_ld19802010 vdem_ld1980max vdem_ld19902000 vdem_ld19902007 vdem_ld19902010 vdem_ld1990max vdem_ld20002010 vdem_ld2000max vdem_suff19501960 vdem_suff19501970 vdem_suff19501980 vdem_suff19501990 vdem_suff19501994 vdem_suff19502000 vdem_suff19502007 vdem_suff19502010 vdem_suff1950max vdem_suff19601970 vdem_suff19601980 vdem_suff19601990 vdem_suff19601994 vdem_suff19602000 vdem_suff19602007 vdem_suff19602010 vdem_suff1960max vdem_suff19701980 vdem_suff19701990 vdem_suff19701994 vdem_suff19702000 vdem_suff19702007 vdem_suff19702010 vdem_suff1970max vdem_suff19801990 vdem_suff19801994 vdem_suff19802000 vdem_suff19802007 vdem_suff19802010 vdem_suff1980max vdem_suff19902000 vdem_suff19902007 vdem_suff19902010 vdem_suff1990max vdem_suff20002010 vdem_suff2000max vdem_mpi19501960 vdem_mpi19501970 vdem_mpi19501980 vdem_mpi19501990 vdem_mpi19501994 vdem_mpi19502000 vdem_mpi19502007 vdem_mpi19502010 vdem_mpi1950max vdem_mpi19601970 vdem_mpi19601980 vdem_mpi19601990 vdem_mpi19601994 vdem_mpi19602000 vdem_mpi19602007 vdem_mpi19602010 vdem_mpi1960max vdem_mpi19701980 vdem_mpi19701990 vdem_mpi19701994 vdem_mpi19702000 vdem_mpi19702007 vdem_mpi19702010 vdem_mpi1970max vdem_mpi19801990 vdem_mpi19801994 vdem_mpi19802000 vdem_mpi19802007 vdem_mpi19802010 vdem_mpi1980max vdem_mpi19902000 vdem_mpi19902007 vdem_mpi19902010 vdem_mpi1990max vdem_mpi20002010 vdem_mpi2000max vdem_api19501960 vdem_api19501970 vdem_api19501980 vdem_api19501990 vdem_api19501994 vdem_api19502000 vdem_api19502007 vdem_api19502010 vdem_api1950max vdem_api19601970 vdem_api19601980 vdem_api19601990 vdem_api19601994 vdem_api19602000 vdem_api19602007 vdem_api19602010 vdem_api1960max vdem_api19701980 vdem_api19701990 vdem_api19701994 vdem_api19702000 vdem_api19702007 vdem_api19702010 vdem_api1970max vdem_api19801990 vdem_api19801994 vdem_api19802000 vdem_api19802007 vdem_api19802010 vdem_api1980max vdem_api19902000 vdem_api19902007 vdem_api19902010 vdem_api1990max vdem_api20002010 vdem_api2000max svolik19501960 svolik19501970 svolik19501980 svolik19501990 svolik19501994 svolik19502000 svolik19502007 svolik1950max svolik19601970 svolik19601980 svolik19601990 svolik19601994 svolik19602000 svolik19602007 svolik1960max svolik19701980 svolik19701990 svolik19701994 svolik19702000 svolik19702007 svolik1970max svolik19801990 svolik19801994 svolik19802000 svolik19802007 svolik1980max svolik19902000 svolik19902007 svolik1990max gwf19501960 gwf19501970 gwf19501980 gwf19501990 gwf19501994 gwf19502000 gwf19502007 gwf19502010 gwf19601970 gwf19601980 gwf19601990 gwf19601994 gwf19602000 gwf19602007 gwf19602010 gwf19701980 gwf19701990 gwf19701994 gwf19702000 gwf19702007 gwf19702010 gwf19801990 gwf19801994 gwf19802000 gwf19802007 gwf19802010 gwf19902000 gwf19902007 gwf19902010 gwf20002010 cheibub19501960 cheibub19501970 cheibub19501980 cheibub19501990 cheibub19501994 cheibub19502000 cheibub19502007 cheibub1950max cheibub19601970 cheibub19601980 cheibub19601990 cheibub19601994 cheibub19602000 cheibub19602007 cheibub1960max cheibub19701980 cheibub19701990 cheibub19701994 cheibub19702000 cheibub19702007 cheibub1970max cheibub19801990 cheibub19801994 cheibub19802000 cheibub19802007 cheibub1980max cheibub19902000 cheibub19902007 cheibub1990max svmdi_201619811994 svmdi_201619812000 svmdi_201619812007 svmdi_201619812010 svmdi_20161981max svmdi_201619902000 svmdi_201619902007 svmdi_201619902010 svmdi_20161990max svmdi_201620002010 svmdi_20162000max svmdi_201819501960 svmdi_201819501970 svmdi_201819501980 svmdi_201819501990 svmdi_201819501994 svmdi_201819502000 svmdi_201819502007 svmdi_201819502010 svmdi_20181950max svmdi_201819601970 svmdi_201819601980 svmdi_201819601990 svmdi_201819601994 svmdi_201819602000 svmdi_201819602007 svmdi_201819602010 svmdi_20181960max svmdi_201819701980 svmdi_201819701990 svmdi_201819701994 svmdi_201819702000 svmdi_201819702007 svmdi_201819702010 svmdi_20181970max svmdi_201819801990 svmdi_201819801994 svmdi_201819802000 svmdi_201819802007 svmdi_201819802010 svmdi_20181980max svmdi_201819902000 svmdi_201819902007 svmdi_201819902010 svmdi_20181990max svmdi_201820002010 svmdi_20182000max kailitz19501960 kailitz19501970 kailitz19501980 kailitz19501990 kailitz19501994 kailitz19502000 kailitz19502007 kailitz19502010 kailitz19601970 kailitz19601980 kailitz19601990 kailitz19601994 kailitz19602000 kailitz19602007 kailitz19602010 kailitz19701980 kailitz19701990 kailitz19701994 kailitz19702000 kailitz19702007 kailitz19702010 kailitz19801990 kailitz19801994 kailitz19802000 kailitz19802007 kailitz19802010 kailitz19902000 kailitz19902007 kailitz19902010 kailitz20002010 coppedge_i19501960 coppedge_i19501970 coppedge_i19501980 coppedge_i19501990 coppedge_i19501994 coppedge_i19502000 coppedge_i19601970 coppedge_i19601980 coppedge_i19601990 coppedge_i19601994 coppedge_i19602000 coppedge_i19701980 coppedge_i19701990 coppedge_i19701994 coppedge_i19702000 coppedge_i19801990 coppedge_i19801994 coppedge_i19802000 coppedge_i19902000 coppedge_c19501960 coppedge_c19501970 coppedge_c19501980 coppedge_c19501990 coppedge_c19501994 coppedge_c19502000 coppedge_c19601970 coppedge_c19601980 coppedge_c19601990 coppedge_c19601994 coppedge_c19602000 coppedge_c19701980 coppedge_c19701990 coppedge_c19701994 coppedge_c19702000 coppedge_c19801990 coppedge_c19801994 coppedge_c19802000 coppedge_c19902000 uds_201019501960 uds_201019501970 uds_201019501980 uds_201019501990 uds_201019501994 uds_201019502000 uds_201019601970 uds_201019601980 uds_201019601990 uds_201019601994 uds_201019602000 uds_201019701980 uds_201019701990 uds_201019701994 uds_201019702000 uds_201019801990 uds_201019801994 uds_201019802000 uds_201019902000 uds_201119501960 uds_201119501970 uds_201119501980 uds_201119501990 uds_201119501994 uds_201119502000 uds_201119502007 uds_201119502010 uds_20111950max uds_201119601970 uds_201119601980 uds_201119601990 uds_201119601994 uds_201119602000 uds_201119602007 uds_201119602010 uds_20111960max uds_201119701980 uds_201119701990 uds_201119701994 uds_201119702000 uds_201119702007 uds_201119702010 uds_20111970max uds_201119801990 uds_201119801994 uds_201119802000 uds_201119802007 uds_201119802010 uds_20111980max uds_201119902000 uds_201119902007 uds_201119902010 uds_20111990max uds_201120002010 uds_20112000max uds_201419501960 uds_201419501970 uds_201419501980 uds_201419501990 uds_201419501994 uds_201419502000 uds_201419502007 uds_201419502010 uds_20141950max uds_201419601970 uds_201419601980 uds_201419601990 uds_201419601994 uds_201419602000 uds_201419602007 uds_201419602010 uds_20141960max uds_201419701980 uds_201419701990 uds_201419701994 uds_201419702000 uds_201419702007 uds_201419702010 uds_20141970max uds_201419801990 uds_201419801994 uds_201419802000 uds_201419802007 uds_201419802010 uds_20141980max uds_201419902000 uds_201419902007 uds_201419902010 uds_20141990max uds_201420002010 uds_20142000max bollen19501960 bollen19501970 bollen19501980 bollen19601970 bollen19601980 bollen19701980 paxton19501960 paxton19501970 paxton19501980 paxton19501990 paxton19501994 paxton19502000 paxton19601970 paxton19601980 paxton19601990 paxton19601994 paxton19602000 paxton19701980 paxton19701990 paxton19701994 paxton19702000 paxton19801990 paxton19801994 paxton19802000 paxton19902000 vanhanen_d19501960 vanhanen_d19501970 vanhanen_d19501980 vanhanen_d19501990 vanhanen_d19501994 vanhanen_d19502000 vanhanen_d19502007 vanhanen_d19502010 vanhanen_d1950max vanhanen_d19601970 vanhanen_d19601980 vanhanen_d19601990 vanhanen_d19601994 vanhanen_d19602000 vanhanen_d19602007 vanhanen_d19602010 vanhanen_d1960max vanhanen_d19701980 vanhanen_d19701990 vanhanen_d19701994 vanhanen_d19702000 vanhanen_d19702007 vanhanen_d19702010 vanhanen_d1970max vanhanen_d19801990 vanhanen_d19801994 vanhanen_d19802000 vanhanen_d19802007 vanhanen_d19802010 vanhanen_d1980max vanhanen_d19902000 vanhanen_d19902007 vanhanen_d19902010 vanhanen_d1990max vanhanen_d20002010 vanhanen_d2000max vanhanen_c19501960 vanhanen_c19501970 vanhanen_c19501980 vanhanen_c19501990 vanhanen_c19501994 vanhanen_c19502000 vanhanen_c19502007 vanhanen_c19502010 vanhanen_c1950max vanhanen_c19601970 vanhanen_c19601980 vanhanen_c19601990 vanhanen_c19601994 vanhanen_c19602000 vanhanen_c19602007 vanhanen_c19602010 vanhanen_c1960max vanhanen_c19701980 vanhanen_c19701990 vanhanen_c19701994 vanhanen_c19702000 vanhanen_c19702007 vanhanen_c19702010 vanhanen_c1970max vanhanen_c19801990 vanhanen_c19801994 vanhanen_c19802000 vanhanen_c19802007 vanhanen_c19802010 vanhanen_c1980max vanhanen_c19902000 vanhanen_c19902007 vanhanen_c19902010 vanhanen_c1990max vanhanen_c20002010 vanhanen_c2000max{
		est clear
		*Table 2, Columns 3-4*
		cap n eststo one: rreg `x' Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k  
		cap n eststo two: rreg `x' Dutchcol Yrsmis60 Npmispc23x10k Epct1900  
		*Table 3, Columns 3-5*
		cap n eststo three: rreg `x' Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k N1stsiteaf1444 See2mis1960 litxmisgap latxmisgap  
		cap n eststo four: rreg `x' Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k N1stsiteaf1444 See2mis1960 litxmisgap latxmisgap Ndifsitecol Nlitxcolgap Nlatxcolgap Colswitch Protstakecol  
		cap n eststo five: rreg `x' Dutchcol Latitude Litb4mis Yrsmis60 Npmispc23x10k Epct1900 N1stsiteaf1444 Ndifsitecol Nlitxcolgap Nlatxcolgap Protstakecol  
		*Output*
		cap n xml_tab _all, save("tables\rr_`x'") title("Robust Regression Controlling for the Process of Colonization: `x'") stats(N r2) star(* 0.1 ** 0.05 *** 0.01) lines(SCOL_NAMES 2 COL_NAMES 2 _cons 2 LAST_ROW 2) font("Calibri" 10) sd below showeq replace
		est clear
	}
		/*BMA*/
		*Table 2, Columns 3-4*
		cap n eststo one: bma polity1950max Epct1900, aux(Yrsmis60 Npmispc23x10k Yrcathmis1444_1960 Cmis23oldpopx10k Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis)
		cap n eststo two: bma polity1950max Epct1900, aux(Yrsmis60 Npmispc23x10k Dutchcol)
		*Table 3, Columns 3-5*
		cap n eststo three: bma polity1950max Epct1900, aux(Yrsmis60 Npmispc23x10k Yrcathmis1444_1960 Cmis23oldpopx10k Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis  N1stsiteaf1444 See2mis1960 litxmisgap latxmisgap)
		cap n eststo four: bma polity1950max Epct1900, aux(Yrsmis60 Npmispc23x10k Yrcathmis1444_1960 Cmis23oldpopx10k Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis N1stsiteaf1444 See2mis1960 litxmisgap latxmisgap Ndifsitecol Nlitxcolgap Nlatxcolgap Colswitch Protstakecol)
		cap n eststo five: bma polity1950max Epct1900, aux(Yrsmis60 Npmispc23x10k Dutchcol Latitude Litb4mis N1stsiteaf1444 Ndifsitecol Nlitxcolgap Nlatxcolgap Protstakecol)
		*Output*
		cap n xml_tab _all, save("tables\rr_bma4_polity1950max") title("Bayesian Model Averaging for the Process of Colonization: polity1950max") stats(N) star(0) lines(SCOL_NAMES 2 COL_NAMES 2 _cons 2 LAST_ROW 2) font("Calibri" 10) sd below showeq replace
		est clear
	
		/*EXTENDED POLITY*/
		*Table A.7. (Table 4) - Polity IV 1950-2016*
		eststo one: rreg polity1950max Dutchcol Yrsmis60 Npmispc23x10k Epct1900  
		eststo two: rreg polity1950max Yrsmis60 Npmispc23x10k Epct1900   if Dutchcol != 1
		eststo three: rreg polity1950max Yrsmis60 Npmispc23x10k Epct1900   if MortNoDutch == 1
		eststo four: rreg polity1950max Yrsmis60 Npmispc23x10k Epct1900 Mort   if MortNoDutch == 1
		eststo five: rreg polity1950max Yrsmis60 Npmispc23x10k Epct1900 Logmort0   if MortNoDutch == 1
		eststo six: rreg polity1950max Dutchcol Yrsmis60 Npmispc23x10k Epct1900   if Ajrpd1500 != .
		eststo seven: rreg polity1950max Dutchcol Yrsmis60 Npmispc23x10k Epct1900 Ajrpd1500  
		eststo eight: rreg polity1950max Yrsmis60 Npmispc23x10k Ajrurb1500  
		eststo nine: rreg polity1950max Yrsmis60 Npmispc23x10k Epct1900 LifeExpectancy_1940  
		noi xml_tab _all, save("tables\table_a7_polity1950max") title("Predicting Democracy in �Non-Western� Societies: Mean Level of Democracy from 1950 - 2016, Polity IV") stats(N r2) star(* 0.1 ** 0.05 *** 0.01) lines(SCOL_NAMES 2 COL_NAMES 2 _cons 2 LAST_ROW 2) font("Calibri" 10) sd below showeq append
		est clear
		*Table A.8. (Table 5) - Polity IV 1950-2016*
		eststo one: rreg polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k  
		eststo two: rreg polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis PctProt1970New PctNonRel1970  
		eststo three: rreg polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k PctProt1970New PctNonRel1970  
		eststo four: rreg polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k   if Lngdpall != .
		eststo five: rreg polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k Lngdpall Yr1stgdp  
		eststo six: rreg polity1950max Britcol Nobrprot Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k   if SecEdNoDutch ==1
		eststo seven: rreg polity1950max Britcol Nobrprot Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k Sec6085 Yr1stsec   if e(sample)
		eststo eight: rreg polity1950max Britcol Nobrprot Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k Firstsec Yr1stsec   if e(sample)
		noi xml_tab _all, save("tables\table_a8_polity1950max") title("Mechanisms by Which Protestant Missions May Have Influenced Democracy, Polity IV (1950-2016)") stats(N r2) star(* 0.1 ** 0.05 *** 0.01) lines(SCOL_NAMES 2 COL_NAMES 2 _cons 2 LAST_ROW 2) font("Calibri" 10) sd below showeq append
		est clear
		qui rreg polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Yrsmis60 Npmispc23x10k Epct1900 Yrcathmis1444_1960 Cmis23oldpopx10k PctProt1970New PctNonRel1970  
		test Npmispc23x10k = Cmis23oldpopx10k
		matrix p1 = r(p)
		matrix f1 = r(F)
		xml_tab p1 f1, save("tables\table_a8_polity1950max") rnames("Npmispc23x10k = Cmis23oldpopx10k") cnames(p F) title("Model (3): F-Test") notes("Npmispc23x10k = Protestant Missionaries per 10,000 pop. in 1923; Cmis23oldpopx10k = Foreign Catholic Priests per 10,000 pop. in 1923") sh("f-test") append
		est clear
		*Table A.9. (Table 6) - Polity IV 1950-2016*
		eststo one: ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Latitude), vce(robust) first
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Latitude), vce(robust) first
		cap n: estat firststage
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Latitude), first 
		cap n: estat firststage
		cap n: estat overid
		qui ivregress 2sls polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Latitude), first vce(robust)
		cap n: estat endogenous
		cap n: estat overid
		qui ivregress gmm polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Latitude), first vce(robust)
		cap n: estat endogenous
		cap n: estat overid
		eststo two: ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Latitude), vce(robust) first
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Latitude), vce(robust) first
		cap n: estat firststage
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Latitude), first
		cap n: estat firststage
		cap n: estat overid
		qui ivregress 2sls polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Latitude), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		qui ivregress gmm polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Latitude), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		eststo three: ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Latitude), vce(robust) first
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Latitude), vce(robust) first
		cap n: estat firststage
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Latitude), first
		cap n: estat firststage
		cap n: estat overid
		qui ivregress 2sls polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Latitude), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		qui ivregress gmm polity1950max Britcol Nobrprot Dutchcol Nosigcol Island Landlock Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp Avgmintemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Latitude), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		eststo four: ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Avgmintemp Landlock), vce(robust) first
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Avgmintemp Landlock), vce(robust) first
		cap n: estat firststage
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Avgmintemp Landlock), first
		cap n: estat firststage
		cap n: estat overid
		qui ivregress 2sls polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Avgmintemp Landlock), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		qui ivregress gmm polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Epct1900 = Avgmintemp Landlock), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		eststo five: ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Avgmintemp Landlock), vce(robust) first
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Avgmintemp Landlock), vce(robust) first
		cap n: estat firststage
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Avgmintemp Landlock),first
		cap n: estat firststage
		cap n: estat overid
		qui ivregress 2sls polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Avgmintemp Landlock), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		qui ivregress gmm polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Npmispc23x10k = Avgmintemp Landlock), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		eststo six: ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Avgmintemp Landlock), vce(robust) first
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Avgmintemp Landlock), vce(robust) first
		cap n: estat firststage
		qui ivregress liml polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Avgmintemp Landlock), first
		cap n: estat firststage
		cap n: estat overid
		qui ivregress 2sls polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Avgmintemp Landlock), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		qui ivregress gmm polity1950max Britcol Nobrprot Dutchcol Nosigcol Latitude Island Euroback PctMuslim1970 Bigoil Litb4mis Avgmaxtemp PrcfreezonceX100 PrcntmntnsX100 Malaria (Yrsmis60 = Avgmintemp Landlock), vce(robust) first
		cap n: estat endogenous
		cap n: estat overid
		noi xml_tab _all, save("tables\table_a9_polity1950max") title("Instrumental Variable Regression: Mean Level of Democracy from 1950 - 2016, Polity IV") stats(N r2) star(* 0.1 ** 0.05 *** 0.01) lines(SCOL_NAMES 2 COL_NAMES 2 _cons 2 LAST_ROW 2) font("Calibri" 10) sd below showeq append
		est clear
	
	save, replace
}

